// frontend/components/connectors/ImportDropzone.tsx — CSV/.ics/HealthKit 수동 임포트 "use client"; import { useRef } from "react"; import { Icon } from "@/components/Icon"; export function ImportDropzone({ onImport }: { onImport: (file: File) => void }) { const ref = useRef(null); const onChange = (e: React.ChangeEvent) => { const file = e.target.files?.[0]; if (file) onImport(file); // 같은 파일 재선택 허용 e.target.value = ""; }; return (
); }