/** * Data access layer for The Science of Self-Realization (SSR). * * Delegates to the generic book data layer which calls the BFF API. */ import { getBookMeta, getIntroSegments, getIntroSegment, getChapter, getContent, getSidebarItems, getNavigableItems, type BookMeta, type IntroSegment, type Chapter, type SidebarItem, } from "@/lib/books"; const CODE = "ssr"; export type SsrMeta = BookMeta; export type SsrSubChapterEntry = { slug: string; title: string }; export type SsrIntroSegment = IntroSegment; export type SsrChapter = Chapter; export type SsrSidebarItem = SidebarItem; export async function getSsrMeta() { return getBookMeta(CODE); } export async function getSsrIntroSegments() { return getIntroSegments(CODE); } export async function getSsrIntroSegment(slug: string) { return getIntroSegment(CODE, slug); } export async function getSsrChapter(slug: string) { return getChapter(CODE, slug); } export async function getSsrContent(slug: string) { return getContent(CODE, slug); } export async function getSsrSidebarItems() { return getSidebarItems(CODE); } export { getNavigableItems };