{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "transcript-viewer-demo",
  "title": "Transcript Viewer Demo",
  "description": "A worked example of Transcript Viewer: A recording as text, where every line is also the way back to the moment it was said.",
  "registryDependencies": [
    "https://ui.tinkererslabs.com/r/transcript-viewer.json"
  ],
  "files": [
    {
      "path": "components/demos/transcript-viewer-demo.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\n\nimport { ScrubBar } from \"@/registry/default/scrub-bar/scrub-bar\"\nimport { TranscriptViewer } from \"@/registry/default/transcript-viewer/transcript-viewer\"\n\nconst cues = [\n  { id: \"1\", start: 0, speaker: \"Ana\", text: \"Right, the renewal window.\" },\n  {\n    id: \"2\",\n    start: 6,\n    speaker: \"Sam\",\n    text: \"Sixty days before the term ends.\",\n  },\n  { id: \"3\", start: 14, speaker: \"Ana\", text: \"And if nobody sends notice?\" },\n  { id: \"4\", start: 21, speaker: \"Sam\", text: \"It renews for another year.\" },\n  {\n    id: \"5\",\n    start: 29,\n    speaker: \"Ana\",\n    text: \"That is the bit to flag, then.\",\n  },\n  {\n    id: \"6\",\n    start: 36,\n    speaker: \"Sam\",\n    text: \"Agreed. I will pull the clause.\",\n  },\n]\n\nexport function TranscriptViewerDemo() {\n  const [time, setTime] = React.useState(14)\n\n  return (\n    <div className=\"w-full max-w-md space-y-3\">\n      <TranscriptViewer\n        cues={cues}\n        time={time}\n        onSeek={(cue) => setTime(cue.start)}\n      />\n      <ScrubBar duration={44} value={time} onValueChange={setTime} />\n    </div>\n  )\n}\n",
      "type": "registry:example"
    }
  ],
  "type": "registry:example"
}