/** * Data access layer for Teachings of Lord Kapila (TLK). * * Delegates to the generic book data layer which calls the BFF API. */ import { getBookMeta, getIntroSegments, getIntroSegment, getChapter, getContent, getSidebarItems, type BookMeta, type IntroSegment, type Chapter, type SidebarItem, } from "@/lib/books"; const CODE = "tlk"; export type TlkMeta = BookMeta; export type TlkChapterEntry = { number: number; title: string }; export type TlkIntroSegment = IntroSegment; export type TlkChapter = Chapter; export type TlkSidebarItem = SidebarItem; export async function getTlkMeta() { return getBookMeta(CODE); } export async function getTlkIntroSegments() { return getIntroSegments(CODE); } export async function getTlkIntroSegment(slug: string) { return getIntroSegment(CODE, slug); } export async function getTlkChapter(chapterNum: number) { return getChapter(CODE, String(chapterNum)); } export async function getTlkContent(slug: string) { return getContent(CODE, slug); } export async function getTlkSidebarItems() { return getSidebarItems(CODE); }