Mailspring/internal_packages/message-templates/lib/main.cjsx
Ben Gotow 91edef9f7a fix(naming): Move atom/inbox/nilas refs to Nylas
Conflicts:
	internal_packages/inbox-activity-bar/lib/activity-bar-long-poll-item.cjsx
2015-05-15 11:07:28 -07:00

25 lines
759 B
CoffeeScript

React = require "react"
{ComponentRegistry, DraftStore} = require 'nylas-exports'
TemplatePicker = require './template-picker'
TemplateStatusBar = require './template-status-bar'
Extension = require './draft-extension'
_ = require 'underscore-plus'
module.exports =
item: null # The DOM item the main React component renders into
activate: (@state={}) ->
ComponentRegistry.register TemplatePicker,
role: 'Composer:ActionButton'
ComponentRegistry.register TemplateStatusBar,
role: 'Composer:Footer'
DraftStore.registerExtension(Extension)
deactivate: ->
ComponentRegistry.unregister(TemplatePicker)
ComponentRegistry.unregister(TemplateStatusBar)
DraftStore.unregisterExtension(Extension)
serialize: -> @state