'use client' import { CheckIcon, CopyIcon } from 'lucide-react' import { Button } from '@/components/ui/button' import { copyFeedbackLabelsFor, copyFeedbackLiveMessagesFor, useCopyFeedback, } from '@/lib/copyFeedback' /** * C194 — the reel's script/narration text. DB content, not a served file: it * stays readable while the reel is unpublished. Each stored line is a block, * the same shape the production writes. */ export const ReelTranscriptCard = ({ transcript }: { transcript: string }) => { const { feedback, copy } = useCopyFeedback() const labels = copyFeedbackLabelsFor('text') const liveMessages = copyFeedbackLiveMessagesFor('text') const blocks = transcript .split(/\n+/) .map((block) => block.trim()) .filter(Boolean) return (

Transcrição / roteiro

{blocks.map((block, index) => (

{block}

))}
{liveMessages[feedback]}
) }