import { CaptionsIcon, DownloadIcon, FileTextIcon, MusicIcon, SquarePlayIcon, type LucideIcon, } from 'lucide-react' import type { ReelDetailViewModel, ReelDownloadItemViewModel, ReelDownloadKind } from '@/lib/reel' const iconByKind: Record = { video: DownloadIcon, 'video-audio': SquarePlayIcon, narration: MusicIcon, captions: CaptionsIcon, } /** * C194 — the downloads of one reel. The silent video is the primary CTA; the * optional artifacts are grouped below with the honest reason when they were * never produced. While the reel is unpublished every row states that the * files return on republication (no dead links — C193 decision B). */ export const ReelDownloadPanel = ({ reel }: { reel: ReelDetailViewModel }) => { const primary = reel.downloads.find((item) => item.primary) const secondary = reel.downloads.filter((item) => !item.primary) return (

Downloads

Outros arquivos

Arquivos deste reel para finalizar e publicar fora do Teqo.

{primary ? (
) : null}
{secondary.map((item) => ( ))} {reel.transcript ? ( ) : null}
) } const PrimaryDownload = ({ item }: { item: ReelDownloadItemViewModel }) => { if (!item.href) { return (
{item.label} {item.unavailableLabel}
) } return ( ) } const DownloadRow = ({ item }: { item: ReelDownloadItemViewModel }) => { const Icon = iconByKind[item.kind] if (!item.href) { return (
) } return ( ) }