Mailspring/app/internal_packages/category-picker/lib/main.jsx
2018-01-24 14:13:08 -08:00

17 lines
516 B
JavaScript

const MovePicker = require('./move-picker');
const LabelPicker = require('./label-picker');
const { ComponentRegistry } = require('mailspring-exports');
module.exports = {
activate(state = {}) {
this.state = state;
ComponentRegistry.register(MovePicker, { role: 'ThreadActionsToolbarButton' });
ComponentRegistry.register(LabelPicker, { role: 'ThreadActionsToolbarButton' });
},
deactivate() {
ComponentRegistry.unregister(MovePicker);
ComponentRegistry.unregister(LabelPicker);
},
};