mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-06 00:04:39 +00:00
24 lines
580 B
TypeScript
24 lines
580 B
TypeScript
import { IndexCategoryPage } from "#/pages/IndexCategory";
|
||
|
||
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}
|
||
/>
|
||
);
|
||
}
|