Mailspring/internal_packages/attachments/lib/main.cjsx

16 lines
375 B
Text
Raw Normal View History

{ComponentRegistry} = require 'inbox-exports'
module.exports =
activate: (@state={}) ->
AttachmentComponent = require "./attachment-component.cjsx"
ComponentRegistry.register
name: 'AttachmentComponent'
view: AttachmentComponent
role: 'Attachment'
deactivate: ->
ComponentRegistry.unregister "AttachmentComponent"
serialize: -> @state