import React from 'react'; import { WARNING_MESSAGES } from '../utils/transcriptionWarnings'; type WarningType = keyof typeof WARNING_MESSAGES; interface TranscriptionWarningModalProps { isOpen: boolean; warnings: WarningType[]; onAccept: () => void; onCancel: () => void; } const TranscriptionWarningModal: React.FC = ({ isOpen, warnings, onAccept, onCancel, }) => { if (!isOpen || warnings.length === 0) { return null; } return (
{/* Warning Messages */}
{warnings.map((warningType) => { const warning = WARNING_MESSAGES[warningType]; return (

{warning.title}

{warning.message}

); })}
{/* Actions */}
); }; export default TranscriptionWarningModal;