const React = require('react'); const styleSelector = require('./style/ConfigMenuBar'); const Setting = require('lib/models/Setting'); function ConfigMenuBarButton(props) { const style = styleSelector(null, props); const iconStyle = props.selected ? style.buttonIconSelected : style.buttonIcon; const labelStyle = props.selected ? style.buttonLabelSelected : style.buttonLabel; return ( ); } function ConfigMenuBar(props) { const buttons = []; const style = styleSelector(null, props); for (const section of props.sections) { buttons.push( { props.onSelectionChange({ section: section }); }} />); } return (
{buttons}
); } module.exports = ConfigMenuBar;