mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-06 08:08:10 +08:00
18 lines
377 B
React
18 lines
377 B
React
|
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;
|
||
|
},
|
||
|
};
|