import { useEffect } from 'react'; import { useTranslation } from 'react-i18next'; import { X, History } from 'lucide-react'; import { PrintLogTable } from './PrintLogTable'; interface PrintLogModalProps { archiveId: number; archiveName: string | null; onClose: () => void; } export function PrintLogModal({ archiveId, archiveName, onClose }: PrintLogModalProps) { const { t } = useTranslation(); useEffect(() => { const handleKeyDown = (e: KeyboardEvent) => { if (e.key === 'Escape') onClose(); }; window.addEventListener('keydown', handleKeyDown); return () => window.removeEventListener('keydown', handleKeyDown); }, [onClose]); return (
e.stopPropagation()} >

{t('archives.runLog.modalTitle', { name: archiveName || t('archives.runLog.modalTitleFallback') })}

); }