import { useDropzone } from 'react-dropzone'; import { Box } from '@chakra-ui/react'; export interface FileInputProps { onReceiveFiles: (files: File[]) => void; multiple?: boolean; children: React.ReactNode; } export function FileInput({ children, onReceiveFiles }: FileInputProps) { const { getRootProps, getInputProps, isDragActive } = useDropzone({ multiple: true, onDropAccepted: onReceiveFiles, }); return ( {children} ); }