mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-06 08:08:10 +08:00
15 lines
375 B
CoffeeScript
15 lines
375 B
CoffeeScript
{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
|