({ children, ...opts }: DropzoneProps)
| 2 | import { useDropzone, DropzoneProps } from "../../"; |
| 3 | |
| 4 | export const Dropzone = ({ children, ...opts }: DropzoneProps) => { |
| 5 | const { ...state } = useDropzone(opts); |
| 6 | return children(state); |
| 7 | }; |
| 8 | |
| 9 | <Dropzone> |
| 10 | {({ getRootProps, getInputProps }) => ( |
nothing calls this directly
no test coverage detected
searching dependent graphs…