You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
310 B
19 lines
310 B
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")
|
|
}
|
|
}
|