import { ProviderIcon, useDropzone, useFileInput, useGooglePicker, } from '@uppy/react' export type CustomDropzonePlugin = 'webcam' | 'dropbox' | 'screen-capture' export interface CustomDropzoneProps { openModal: (plugin: CustomDropzonePlugin) => void } export function CustomDropzone({ openModal }: CustomDropzoneProps) { const { getRootProps, getInputProps } = useDropzone({ noClick: true }) const { getButtonProps, getInputProps: getFileInputProps } = useFileInput() const googleDrivePicker = useGooglePicker({ pickerType: 'drive', }) const googlePhotosPicker = useGooglePicker({ pickerType: 'photos', }) return (
) } export default CustomDropzone