import { useRef, useState } from "react"; import { ACCEPT, MAX_UPLOAD_MB, type Sample } from "../api"; interface Props { samples: Sample[] | null; selectedId: string | null; fileName: string | null; onSample: (s: Sample) => void; onFile: (f: File) => void; } export function InputPanel({ samples, selectedId, fileName, onSample, onFile }: Props) { const fileRef = useRef(null); const [over, setOver] = useState(false); return (

Input

Real phone RAW or a photo

{ const f = e.target.files?.[0]; if (f) onFile(f); e.target.value = ""; }} />
); }