// Copyright (c) 2015 Spinpunch, Inc. All Rights Reserved. // See License.txt for license information. var SidebarHeader = require('../sidebar_header.jsx'); export default class AdminSidebar extends React.Component { constructor(props) { super(props); this.isSelected = this.isSelected.bind(this); this.handleClick = this.handleClick.bind(this); this.state = { }; } handleClick(name) { this.props.selectTab(name); } isSelected(name) { if (this.props.selected === name) { return 'active'; } return ''; } render() { return (
); } } AdminSidebar.propTypes = { selected: React.PropTypes.string, selectTab: React.PropTypes.func };