import { For } from "solid-js"; import { useT } from "@/stores/preferences-context"; /** The transcript's chapters: the backend joins them with blank lines. */ export function transcriptChapters(text: string | null | undefined): string[] { return (text ?? "") .split(/\r?\n\s*\r?\n/) .map((chapter) => chapter.trim()) .filter(Boolean); } /** * The episode's transcript, one paragraph per chapter. The backend sends it * without timings, so it reads alongside playback rather than following it. */ export function PodcastTranscript(props: { chapters: string[] }) { const t = useT(); return (
{(chapter) =>

{chapter}

}
); }