AniX/app/search/page.js

16 lines
380 B
JavaScript

import dynamic from "next/dynamic";
import { SearchPage } from "@/app/pages/Search";
export async function generateMetadata({ searchParams }) {
const query = searchParams.q;
return {
title: query || "Поиск",
};
}
const SearchDynamic = dynamic(() => Promise.resolve(SearchPage), {
ssr: false,
});
export default function Search() {
return <SearchDynamic />;
}