mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 13:44:41 +08:00
15 lines
504 B
Text
15 lines
504 B
Text
|
import {ComponentRegistry} from 'nylas-exports'
|
||
|
import AttachmentComponent from "./attachment-component"
|
||
|
import ImageAttachmentComponent from "./image-attachment-component"
|
||
|
|
||
|
|
||
|
export function activate() {
|
||
|
ComponentRegistry.register(AttachmentComponent, {role: 'Attachment'})
|
||
|
ComponentRegistry.register(ImageAttachmentComponent, {role: 'Attachment:Image'})
|
||
|
}
|
||
|
|
||
|
export function deactivate() {
|
||
|
ComponentRegistry.unregister(AttachmentComponent)
|
||
|
ComponentRegistry.unregister(ImageAttachmentComponent)
|
||
|
}
|