React = require 'react' _ = require 'underscore' {RetinaImg, Flexbox} = require 'nylas-component-kit' class PreferencesHeader extends React.Component @displayName: 'PreferencesHeader' @propTypes: tabs: React.PropTypes.array.isRequired changeActiveTab: React.PropTypes.func.isRequired activeTab: React.PropTypes.object render: =>
{ @props.tabs.map (tab) => classname = "preference-header-item" classname += " active" if tab is @props.activeTab
@props.changeActiveTab(tab) } key={tab.name}>
{tab.name}
}
module.exports = PreferencesHeader