Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const PropTypes = require('prop-types')
const UppyCore = require('@uppy/core').Uppy
// The `uppy` prop receives the Uppy core instance.
const uppy = PropTypes.instanceOf(UppyCore).isRequired
// A list of plugins to mount inside this component.
const plugins = PropTypes.arrayOf(PropTypes.string)
// Language strings for this component.
const locale = PropTypes.shape({
strings: PropTypes.object,
pluralize: PropTypes.func
})
// List of meta fields for the editor in the Dashboard.
const metaField = PropTypes.shape({
id: PropTypes.string.isRequired,