mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-28 08:59:40 +05:00
feat: add bookmarks & bookmarks category pages
This commit is contained in:
parent
a3f5f2e116
commit
bccc8407fc
13 changed files with 624 additions and 155 deletions
27
app/bookmarks/[slug]/page.js
Normal file
27
app/bookmarks/[slug]/page.js
Normal file
|
@ -0,0 +1,27 @@
|
|||
import { BookmarksCategoryPage } from "@/app/pages/BookmarksCategory";
|
||||
|
||||
const SectionTitleMapping = {
|
||||
watching: "Смотрю",
|
||||
planned: "В планах",
|
||||
watched: "Просмотрено",
|
||||
delayed: "Отложено",
|
||||
abandoned: "Заброшено",
|
||||
};
|
||||
|
||||
export async function generateMetadata({ params }) {
|
||||
return {
|
||||
title: SectionTitleMapping[params.slug],
|
||||
};
|
||||
}
|
||||
|
||||
export default function Index({ params }) {
|
||||
const metadata = {
|
||||
title: "AniX | " + SectionTitleMapping[params.slug],
|
||||
};
|
||||
return (
|
||||
<BookmarksCategoryPage
|
||||
slug={params.slug}
|
||||
SectionTitleMapping={SectionTitleMapping}
|
||||
/>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue