import React from 'react';
import cn from 'classnames';
import { Link } from 'react-router';

import styles from 'staff-legacy/styles/ui/navbar';
import UI from 'staff-legacy/components/ui';
const { Grid } = UI;

export default ({ actions }) => (
  <nav className={styles.nav}>
    <Grid.Container>
      <ul className={cn(styles.menu, styles.menuLeft)}>
        <Link to="/" className={styles.menuBlock} activeClassName={styles.menuBlockActive}>Staff</Link>
      </ul>
      <ul className={cn(styles.menu, styles.menuRight)}>
        <UI.Button className={styles.menuBlock} onClick={actions.logout}>Log out</UI.Button>
      </ul>
    </Grid.Container>
  </nav>
);
