import Link from 'next/link' import { SpeechCutStatusBadge } from '@/components/campaign/speech/SpeechCutStatusBadge' import { SpeechHighlightParts } from '@/components/campaign/speech/SpeechHighlightParts' import { campaignSpeechCutDetailHref } from '@/lib/campaignPaths' import { formatSpeechClock } from '@/lib/speechClock' import type { SpeechCutSummaryViewModel } from '@/lib/speechCut' import { splitHighlightedParts } from '@/lib/speechHighlight' const countLabel = (count: number): string => count === 1 ? '1 corte desta fala' : `${count} cortes desta fala` /** Touch-sized outlined button on mobile; the compact text link on `md+`. */ const CutAction = ({ cut }: { cut: SpeechCutSummaryViewModel }) => ( Abrir corte → ) /** * C174 — the cuts of a speech nested under its search result. A list that only * links to the C168 detail (editing stays there): the acervo search answers * "this speech already rendered a cut" without becoming a second library. The * origin-only card (`showDescription`) mirrors the approved scene: the matched * term highlighted and the cut description as the evidence. */ export const SpeechNestedCuts = ({ cuts, caption, query, showDescription = false, }: { cuts: readonly SpeechCutSummaryViewModel[] caption?: string /** The search term, highlighted in the title. */ query?: string /** CENA 05 — origin-only result: title + description, action below. */ showDescription?: boolean }) => (

{caption ?? countLabel(cuts.length)}

)