@appbuckets/react-ui
Version:
Just Another React UI Framework
23 lines (20 loc) • 567 B
JavaScript
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 };