/** * Data access layer for Transcendental Teachings of Prahlāda Mahārāja (TTP). * * 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 = "ttp"; export type TtpMeta = BookMeta; export type TtpChapterEntry = { number: number; title: string }; export type TtpIntroSegment = IntroSegment; export type TtpChapter = Chapter; export type TtpSidebarItem = SidebarItem; export async function getTtpMeta() { return getBookMeta(CODE); } export async function getTtpIntroSegments() { return getIntroSegments(CODE); } export async function getTtpIntroSegment(slug: string) { return getIntroSegment(CODE, slug); } export async function getTtpChapter(chapterNum: number) { return getChapter(CODE, String(chapterNum)); } export async function getTtpContent(slug: string) { return getContent(CODE, slug); } export async function getTtpSidebarItems() { return getSidebarItems(CODE); }