mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-05 15:54:39 +00:00
25 lines
620 B
TypeScript
25 lines
620 B
TypeScript
import { IndexCategoryPage } from "#/pages/IndexCategory";
|
|
export const dynamic = 'force-static';
|
|
|
|
const SectionTitleMapping = {
|
|
last: "Последние релизы",
|
|
finished: "Завершенные релизы",
|
|
ongoing: "Выходит",
|
|
announce: "Анонсированные релизы",
|
|
films: "Фильмы",
|
|
};
|
|
|
|
export async function generateMetadata({ params }) {
|
|
return {
|
|
title: SectionTitleMapping[params.slug],
|
|
};
|
|
}
|
|
|
|
export default function Index({ params }) {
|
|
return (
|
|
<IndexCategoryPage
|
|
slug={params.slug}
|
|
SectionTitleMapping={SectionTitleMapping}
|
|
/>
|
|
);
|
|
}
|