/** * Dashboard头部组件 */ import { useRef } from 'react'; import { BrainCircuit, UploadCloud } from 'lucide-react'; interface HeaderProps { onUpload: (files: FileList) => void; } export default function Header({ onUpload }: HeaderProps) { const fileInputRef = useRef(null); const handleFileChange = (e: React.ChangeEvent) => { if (e.target.files && e.target.files.length > 0) { onUpload(e.target.files); // 重置input以允许选择相同文件 e.target.value = ''; } }; return (
{/* Logo区域 */}

智能审稿系统

当前工作区:编辑部初审组

{/* 上传按钮 */}
); }