import { Download } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { Input } from '@/components/ui/input'; import { Label } from '@/components/ui/label'; import { formatBytes } from '@/utils/format'; interface DecodeResultPaperProps { title: string; mimeType: string; blobSize: number; fileName: string; onFileNameChange: (name: string) => void; onDownload: () => void; children?: React.ReactNode; } export default function DecodeResultPaper({ title, mimeType, blobSize, fileName, onFileNameChange, onDownload, children, }: DecodeResultPaperProps) { return (
{title} {children}
推断的 MIME 类型: {mimeType} 解码大小: {formatBytes(blobSize)}
onFileNameChange(e.target.value)} />
); }