import React from 'react';

function MenuBar(props) {
  return (
    <ul>
      <li>
        <a>Gamenight</a>
      </li>
      <li>
        <a>User: {props.user}</a>
      </li>
      <li>
        <button onClick={props.onLogout}>Logout</button>
      </li>
    </ul>
  );
}

export default MenuBar;
