mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-06 00:04:39 +00:00
24 lines
581 B
TypeScript
24 lines
581 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}
|
|
/>
|
|
);
|
|
}
|