{ComponentRegistry, WorkspaceStore, Actions} = require "nylas-exports" {RetinaImg} = require 'nylas-component-kit' React = require "react" _ = require "underscore" class ModeToggle extends React.Component @displayName: 'ModeToggle' constructor: (@props) -> @state = @_getStateFromStores() componentDidMount: => @unsubscribe = WorkspaceStore.listen(@_onStateChanged, @) componentWillUnmount: => @unsubscribe?() render: => return
unless @state.visible