import { ChevronRightIcon, VideoIcon } from 'lucide-react' import Link from 'next/link' import { RecordingStatusBadge } from '@/components/campaign/recording/RecordingStatusBadge' import { SpeechHighlightParts } from '@/components/campaign/speech/SpeechHighlightParts' import { Button } from '@/components/ui/button' import type { RecordingStatus } from '@/lib/recording' import type { RecordingListItemViewModel } from '@/utilities/recordings/recordingViewModels' const STATE_COPY: Record, string> = { processing: 'Transcrevendo a gravação. Ela ainda não aparece na busca.', failed: 'A transcrição não foi concluída. O arquivo foi preservado — reprocesse no detalhe.', ready: 'Transcrição pronta e pesquisável.', } const metaLine = (recording: RecordingListItemViewModel): string => { const parts = [recording.recordedAtLabel ?? 'Sem data'] if (recording.durationLabel) parts.push(recording.durationLabel) return parts.join(' · ') } /** * C199 — one recording in the "Gravações enviadas" list: state chip, date, * duration, the matching excerpt when the search found one and the single * "Abrir" action (delete lives only in the detail — design decision). */ export const RecordingResultCard = ({ recording }: { recording: RecordingListItemViewModel }) => { const excerpt = recording.excerpt return (
) }