/** * Data access layer for Kṛṣṇa Consciousness: The Matchless Gift (MG). * * 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 = "mg"; // Re-export types with book-specific names for backwards compatibility export type MgMeta = BookMeta; export type MgChapterEntry = { number: number; title: string }; export type MgIntroSegment = IntroSegment; export type MgChapter = Chapter; export type MgSidebarItem = SidebarItem; export async function getMgMeta(): Promise { return getBookMeta(CODE); } export async function getMgIntroSegments(): Promise { return getIntroSegments(CODE); } export async function getMgIntroSegment( slug: string, ): Promise { return getIntroSegment(CODE, slug); } export async function getMgChapter( chapterNum: number, ): Promise { return getChapter(CODE, String(chapterNum)); } export async function getMgContent( slug: string, ): Promise { return getContent(CODE, slug); } export async function getMgSidebarItems(): Promise { return getSidebarItems(CODE); }