Files
2026-05-10 00:35:14 +05:30

30 lines
673 B
TypeScript

import {
getBookMeta,
getChapter,
getContent,
getSidebarItems,
type BookMeta,
type Chapter,
type SidebarItem,
} from "@/lib/books";
const CODE = "pk";
export type PkMeta = BookMeta;
export type PkChapterEntry = { number: number; title: string };
export type PkChapter = Chapter;
export type PkSidebarItem = SidebarItem;
export async function getPkMeta() {
return getBookMeta(CODE);
}
export async function getPkChapter(chapterNum: number) {
return getChapter(CODE, String(chapterNum));
}
export async function getPkContent(slug: string) {
return getContent(CODE, slug);
}
export async function getPkSidebarItems() {
return getSidebarItems(CODE);
}