'use client' import { Icons, getBackendUrl, type Recording } from './types' interface TranscriptModalProps { isDark: boolean currentRecording: Recording transcriptText: string transcriptLoading: boolean startTranscription: (id: string) => void onClose: () => void } export function TranscriptModal({ isDark, currentRecording, transcriptText, transcriptLoading, startTranscription, onClose, }: TranscriptModalProps) { return (
{/* Header */}

Transkript: {currentRecording.title || `Aufzeichnung ${currentRecording.meeting_id}`}

{/* Content */}
{transcriptLoading ? (
Lade Transkript...
) : transcriptText === 'PENDING' ? (
{Icons.clock}

Transkription ausstehend

Die Transkription wurde noch nicht gestartet oder ist in Bearbeitung.

) : (
{transcriptText}
)}
{/* Footer */}
{transcriptText && transcriptText !== 'PENDING' && ( <> )}
) } function DownloadButton({ isDark, label, href }: { isDark: boolean; label: string; href: string }) { return ( ) }