import FileStatusBadge from '@/components/file-status-badge'; import { Button } from '@/components/ui/button'; import { Modal } from '@/components/ui/modal/modal'; import { useTranslate } from '@/hooks/common-hooks'; import React from 'react'; import reactStringReplace from 'react-string-replace'; export interface ILogInfo { taskId?: string; fileName: string; fileSize?: string; source?: string; task?: string; state?: 'Running' | 'Success' | 'Failed' | 'Pending'; startTime?: string; endTime?: string; duration?: string; details: string; } interface ProcessLogModalProps { visible: boolean; onCancel: () => void; logInfo: ILogInfo; } const InfoItem: React.FC<{ label: string; value: string | React.ReactNode; className?: string; }> = ({ label, value, className = '' }) => { return (