Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
) : (
<div>
{' '}
{file.name}
</div>
)}
)
FilePicker.propTypes = {
// React Dropzone
...Dropzone.propTypes,
// State
message: PropTypes.node
}
FilePicker.defaultProps = {
// State
message: 'Drag file or click here'
}
export default FilePicker
<small>{message}</small>
<button size="small" type="ternary">
{buttonMessage}
</button>
{imageFilePreviewURL && (
<div style="{{">
)}
)
FilePicker.propTypes = {
// React Dropzone
...Dropzone.propTypes,
// State
message: PropTypes.node,
buttonMessage: PropTypes.node,
imageFilePreviewURL: PropTypes.string
}
FilePicker.defaultProps = {
// State
message: 'Drag file here or',
buttonMessage: 'Browse Image',
imageFilePreviewURL: null
}
export default FilePicker
</div>