"use client"; import { Card } from "@/components/ui/Card"; interface ChapterListProps { chapters: any[]; onSeekToChapter: (startTime: number) => void; formatTime: (seconds: number) => string; } export function ChapterList({ chapters, onSeekToChapter, formatTime, }: ChapterListProps) { // Hide if >50 chapters (likely multi-file audiobook) if (!chapters || chapters.length === 0 || chapters.length > 50) { return null; } return (

Chapters

{chapters.map((chapter: any, index: number) => ( ))}
); }