import React from 'react';

import NavList from './NavList.js';

// TODO: show empty category message
class Sidebar extends React.Component {
  render() {
    return (
      <div className="sidebar">
        <div className="sidebar__nav">
          <NavList
            navLinks={this.props.navLinks}
            includeBorder={this.props.includeBorder}
          />

          {this.props.children}
        </div>

        <label htmlFor="menu-input" className="sidebar__close" />
      </div>
    );
  }
}

export default Sidebar;
