React = require 'react/addons'
{Actions} = require 'inbox-exports'
{Menu} = require 'ui-components'
SearchSuggestionStore = require './search-suggestion-store'
_ = require 'underscore-plus'
module.exports =
SearchBar = React.createClass
getInitialState: ->
query: ""
focused: false
suggestions: []
committedQuery: ""
componentDidMount: ->
@unsubscribe = SearchSuggestionStore.listen @_onStoreChange
# It's important that every React class explicitly stops listening to
# atom events before it unmounts. Thank you event-kit
# This can be fixed via a Reflux mixin
componentWillUnmount: ->
@unsubscribe()
render: ->
headerComponents = [
]
itemContentFunc = (item) ->
if item.divider
else
item.label