UNPKG

@appbuckets/react-ui

Version:
23 lines (20 loc) 567 B
import { __assign } from 'tslib'; import * as React from 'react'; import { useDropzone } from '../Dropzone.context.js'; /* -------- * Component Definition * -------- */ var DropzoneInput = function (props) { var dropzone = useDropzone(); return React.createElement( 'div', { className: 'dropzone-input' }, React.createElement( 'input', __assign({}, props, dropzone.state.getInputProps()) ) ); }; DropzoneInput.displayName = 'DropzoneInput'; var DropzoneInput$1 = React.memo(DropzoneInput); export { DropzoneInput$1 as default };