Mailspring/app/internal_packages/events/lib/main.jsx

18 lines
377 B
React
Raw Normal View History

const { ComponentRegistry } = require('mailspring-exports');
const EventHeader = require('./event-header');
module.exports = {
activate(state = {}) {
this.state = state;
ComponentRegistry.register(EventHeader, { role: 'message:BodyHeader' });
},
deactivate() {
ComponentRegistry.unregister(EventHeader);
},
serialize() {
return this.state;
},
};