/** * Data access layer for Teachings of Lord Caitanya (TLC). * * 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 = "tlc"; export type TlcMeta = BookMeta; export type TlcChapterEntry = { number: number; title: string }; export type TlcIntroSegment = IntroSegment; export type TlcChapter = Chapter; export type TlcSidebarItem = SidebarItem; export async function getTlcMeta() { return getBookMeta(CODE); } export async function getTlcIntroSegments() { return getIntroSegments(CODE); } export async function getTlcIntroSegment(slug: string) { return getIntroSegment(CODE, slug); } export async function getTlcChapter(chapterNum: number) { return getChapter(CODE, String(chapterNum)); } export async function getTlcContent(slug: string) { return getContent(CODE, slug); } export async function getTlcSidebarItems() { return getSidebarItems(CODE); }