Mailspring/internal_packages/sidebar-inbox-internal/lib/main.cjsx

18 lines
464 B
CoffeeScript

_ = require 'underscore-plus'
React = require "react"
SidebarInternal = require "./sidebar-internal"
{ComponentRegistry, WorkspaceStore} = require "inbox-exports"
module.exports =
item: null
activate: (@state={}) ->
ComponentRegistry.register
name: 'SidebarInternal'
view: SidebarInternal
location: WorkspaceStore.Location.MessageListSidebar
deactivate: ->
ComponentRegistry.unregister('SidebarInternal')
serialize: -> @state