import { Pause, Play, Square } from 'lucide-react'; import React from 'react'; import { useI18n } from '@/application/i18n/I18nProvider'; import { Button } from '@/components/ui/button'; import { cn } from '@/lib/utils.ts'; export interface ScriptRecordingIndicatorProps { elapsedMs: number; isPaused: boolean; onPause: () => void; onResume: () => void; onStop: () => void; } function formatElapsed(ms: number) { const seconds = Math.floor(ms / 1000); const minutes = Math.floor(seconds / 60); const rest = seconds % 60; return `${String(minutes).padStart(2, '0')}:${String(rest).padStart(2, '0')}`; } export const ScriptRecordingIndicator: React.FC = ({ elapsedMs, isPaused, onPause, onResume, onStop, }) => { const { t } = useI18n(); return (
REC {formatElapsed(elapsedMs)} {isPaused ? ( ) : ( )}
); };