// FileUploadPanel Component import React, { useRef } from 'react'; import { Upload, FileJson, Zap } from 'lucide-react'; interface FileUploadPanelProps { onUpload: (file: File) => void; onSampleData: () => void; loading: boolean; hasData: boolean; } export const FileUploadPanel: React.FC = ({ onUpload, onSampleData, loading, hasData, }) => { const fileInputRef = useRef(null); const handleFileChange = (e: React.ChangeEvent) => { const file = e.target.files?.[0]; if (file) { onUpload(file); } }; const handleClick = () => { fileInputRef.current?.click(); }; return (

Site Boundary

{hasData && (
✅ Boundary loaded
)}
); }; export default FileUploadPanel;