mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 05:41:05 +08:00
19 lines
464 B
Text
19 lines
464 B
Text
|
_ = 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
|