diff --git a/assets/bars.svg b/assets/bars.svg index 91c83c48..fdb2d6e4 100644 --- a/assets/bars.svg +++ b/assets/bars.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/assets/xmark.svg b/assets/xmark.svg index 6d72bf6d..340f479e 100644 --- a/assets/xmark.svg +++ b/assets/xmark.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/components/common/HamburgerButton.js b/components/common/HamburgerButton.js new file mode 100644 index 00000000..501b8c95 --- /dev/null +++ b/components/common/HamburgerButton.js @@ -0,0 +1,44 @@ +import Button from 'components/common/Button'; +import XMark from 'assets/xmark.svg'; +import Bars from 'assets/bars.svg'; +import { useState } from 'react'; +import styles from './HamburgerButton.module.css'; +import MobileMenu from './MobileMenu'; +import { FormattedMessage } from 'react-intl'; + +const menuItems = [ + { + label: , + value: '/dashboard', + }, + { label: , value: '/realtime' }, + { label: , value: '/settings' }, + { + label: , + value: '/settings/profile', + }, + { label: , value: '/logout' }, +]; + +export default function HamburgerButton() { + const [active, setActive] = useState(false); + + function handleClick() { + setActive(state => !state); + } + + function handleClose() { + setActive(false); + } + + return ( + <> +