uppy/packages/@uppy/react/src/__mocks__/DashboardPlugin.js
2018-06-28 12:20:21 +02:00

18 lines
351 B
JavaScript

const { Plugin } = require('@uppy/core')
module.exports = class Dashboard extends Plugin {
constructor (uppy, opts) {
super(uppy, opts)
this.id = opts.id
this.type = 'orchestrator'
}
install () {
if (this.opts.onInstall) this.opts.onInstall()
}
uninstall () {
if (this.opts.onUninstall) this.opts.onUninstall()
}
}