React = require 'react' _ = require 'underscore' classNames = require 'classnames' {Actions, Utils, WorkspaceStore} = require 'nylas-exports' {RetinaImg} = require 'nylas-component-kit' class AccountSidebarSheetItem extends React.Component @displayName: 'AccountSidebarSheetItem' render: => classSet = classNames 'item': true 'selected': @props.select if @props.item.icon and @props.item.icon.displayName? component = @props.item.icon icon = else if _.isString(@props.item.icon) icon = else icon =
{icon}
{@props.item.name}
_onClick: (event) => event.preventDefault() Actions.selectRootSheet(@props.item.sheet) module.exports = AccountSidebarSheetItem