"use client"; import type { Transcript } from "@/lib/annotations"; import { formatTime } from "@/lib/annotations"; export default function TranscriptEditor({ draft, readOnly, onChange, onSave, onClose, onDelete }: { draft: { index: number; row: Transcript }; readOnly: boolean; onChange: (row: Transcript) => void; onSave: () => void; onClose: () => void; onDelete: () => void; }) { const row = draft.row; return