2016-09-27 07:59:43 +08:00
|
|
|
import {
|
|
|
|
ComponentRegistry,
|
|
|
|
} from 'nylas-exports';
|
2016-03-22 09:22:20 +08:00
|
|
|
|
2016-09-27 07:59:43 +08:00
|
|
|
import AttachmentComponent from "./attachment-component";
|
|
|
|
import ImageAttachmentComponent from "./image-attachment-component";
|
2016-03-22 09:22:20 +08:00
|
|
|
|
|
|
|
export function activate() {
|
|
|
|
ComponentRegistry.register(AttachmentComponent, {role: 'Attachment'})
|
|
|
|
ComponentRegistry.register(ImageAttachmentComponent, {role: 'Attachment:Image'})
|
|
|
|
}
|
|
|
|
|
|
|
|
export function deactivate() {
|
2016-09-27 07:59:43 +08:00
|
|
|
ComponentRegistry.unregister(AttachmentComponent);
|
|
|
|
ComponentRegistry.unregister(ImageAttachmentComponent);
|
2016-03-22 09:22:20 +08:00
|
|
|
}
|