import Link from 'next/link' import { formatSpeechClock } from '@/lib/speechClock' import type { SpeechCutLibraryItemViewModel } from '@/lib/speechCut' /** * C168 — context of the cut: which speech it came from and the stored excerpt * span, with the link back to the acervo. Degrades honestly when the source * speech was deleted (the FK is `SET NULL`) — the cut itself stays usable. */ export const SpeechCutOriginCard = ({ cut }: { cut: SpeechCutLibraryItemViewModel }) => (

Discurso de origem

{cut.origin ? ( <>

{cut.origin.label}

Trecho {formatSpeechClock(cut.startSeconds)}–{formatSpeechClock(cut.endSeconds)} da fala

Ver fala no acervo ) : (

A fala de origem não está mais disponível. O corte continua salvo e compartilhável.

)}
)