React = require 'react' _ = require "underscore" PackageSet = require './package-set' SettingsPackagesStore = require './settings-packages-store' SettingsActions = require './settings-actions' {Spinner, EventedIFrame, Flexbox} = require 'nylas-component-kit' classNames = require 'classnames' class TabExplore extends React.Component @displayName: 'TabExplore' constructor: (@props) -> @state = @_getStateFromStores() render: => if @state.search.length collectionPrefix = "Matching " if @state.searchResults collection = @state.searchResults emptyText = "No results found." else collection = {packages: [], themes: []} emptyText = "Loading results..." else collection = @state.featured collectionPrefix = "Featured " emptyText = null