mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 05:41:05 +08:00
19 lines
440 B
Text
19 lines
440 B
Text
|
React = require "react"
|
||
|
{ComponentRegistry} = require('inbox-exports')
|
||
|
TemplatePicker = require './template-picker'
|
||
|
|
||
|
module.exports =
|
||
|
item: null # The DOM item the main React component renders into
|
||
|
|
||
|
activate: (@state={}) ->
|
||
|
# Register our menu item in the composer footer
|
||
|
ComponentRegistry.register
|
||
|
name: 'TemplatePicker'
|
||
|
role: 'Composer:Footer'
|
||
|
view: TemplatePicker
|
||
|
|
||
|
|
||
|
deactivate: ->
|
||
|
|
||
|
serialize: -> @state
|