mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-12 12:40:08 +08:00
18 lines
464 B
CoffeeScript
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
|