mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-05 07:44:38 +00:00
26 lines
642 B
JavaScript
26 lines
642 B
JavaScript
import { IndexCategoryPage } from "@/app/pages/IndexCategory";
|
||
|
||
const SectionTitleMapping = {
|
||
last: "Последние релизы",
|
||
finished: "Завершенные релизы",
|
||
ongoing: "В эфире",
|
||
announce: "Анонсированные релизы",
|
||
};
|
||
|
||
export async function generateMetadata({ params }) {
|
||
return {
|
||
title: SectionTitleMapping[params.slug],
|
||
};
|
||
}
|
||
|
||
export default function Index({ params }) {
|
||
const metadata = {
|
||
title: "AniX | " + SectionTitleMapping[params.slug],
|
||
};
|
||
return (
|
||
<IndexCategoryPage
|
||
slug={params.slug}
|
||
SectionTitleMapping={SectionTitleMapping}
|
||
/>
|
||
);
|
||
}
|