/* * Menu * Simple expandable menu. * * Dependencies: * styles/components/_menu.scss * * Version: * 1.0.0 - 2018/03/01 */ import React from 'react'; import FontAwesomeIcon from '@fortawesome/react-fontawesome' import { NavLink } from 'react-router-dom'; import { faBars } from '@fortawesome/fontawesome-free-solid' const MenuGroup = function(props) { return ( {props.title} {props.children} ) } const MenuItem = function(props) { return ( {props.children} ) } class Menu extends React.Component { constructor(props) { super(props); this.state = { open: false } } toggleMenu() { this.setState({ open: !this.state.open }); } render() { if(this.state.open) { document.body.classList.add('is-menu-open'); } else { document.body.classList.remove('is-menu-open'); } return ( Contact Me Privacy Policy ) } } export default Menu;