import { Button, Icon } from 'react-basics'; import { useState } from 'react'; import { FormattedMessage } from 'react-intl'; import MobileMenu from './MobileMenu'; import Icons from 'components/icons'; import styles from './HamburgerButton.module.css'; const menuItems = [ { label: , value: '/dashboard', }, { label: , value: '/realtime' }, { label: , value: '/input', }, { label: , value: '/input/profile', }, { label: , value: '/logout' }, ]; export default function HamburgerButton() { const [active, setActive] = useState(false); function handleClick() { setActive(state => !state); } function handleClose() { setActive(false); } return ( <> {active && } ); }