module.exports = class { onCreate(input) { this.state = { isImage: (input.file && input.file.mimeType.startsWith("image/")) } } onInput(input) { this.state.isImage = (input.file && input.file.mimeType.startsWith("image/")) } open() { } close() { this.emit("close") } }