{Actions, Message, DatabaseStore, React} = require 'nylas-exports' {Popover, Menu, RetinaImg} = require 'nylas-component-kit' TemplateStore = require './template-store' class TemplatePicker extends React.Component @displayName: 'TemplatePicker' @containerStyles: order:2 constructor: (@props) -> @state = searchValue: "" templates: TemplateStore.items() componentDidMount: => @unsubscribe = TemplateStore.listen @_onStoreChange componentWillUnmount: => @unsubscribe() if @unsubscribe render: => button = headerComponents = [ ] footerComponents = [