/** * Data access layer for On Chanting Hare Kṛṣṇa (OCHKM). * * 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 = "ochkm"; // Re-export types with book-specific names for backwards compatibility export type OchkmMeta = BookMeta; export type OchkmChapterEntry = { number: number; title: string }; export type OchkmIntroSegment = IntroSegment; export type OchkmChapter = Chapter; export type OchkmSidebarItem = SidebarItem; export async function getOchkmMeta(): Promise { return getBookMeta(CODE); } export async function getOchkmIntroSegments(): Promise { return getIntroSegments(CODE); } export async function getOchkmIntroSegment( slug: string, ): Promise { return getIntroSegment(CODE, slug); } export async function getOchkmChapter( chapterNum: number, ): Promise { return getChapter(CODE, String(chapterNum)); } export async function getOchkmContent( slug: string, ): Promise { return getContent(CODE, slug); } export async function getOchkmSidebarItems(): Promise { return getSidebarItems(CODE); }