mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-05 07:44:38 +00:00
18 lines
429 B
TypeScript
18 lines
429 B
TypeScript
import dynamic from "next/dynamic";
|
|
import { SearchPage } from "#/pages/Search";
|
|
import { Metadata } from "next";
|
|
|
|
export async function generateMetadata({ searchParams }): Promise<Metadata> {
|
|
const query = searchParams.q;
|
|
|
|
return {
|
|
title: query || "Поиск",
|
|
};
|
|
}
|
|
|
|
const SearchDynamic = dynamic(() => Promise.resolve(SearchPage), {
|
|
ssr: false,
|
|
});
|
|
export default function Search() {
|
|
return <SearchDynamic />;
|
|
}
|