13 lines
245 B
TypeScript
13 lines
245 B
TypeScript
|
import { Icon } from './Icon'
|
||
|
|
||
|
export function ToggleMenuButton() {
|
||
|
return (
|
||
|
<button
|
||
|
className="menu__button icon-button"
|
||
|
onClick={() => document.body.classList.toggle('sidebar-open')}
|
||
|
>
|
||
|
<Icon icon="menu" small />
|
||
|
</button>
|
||
|
)
|
||
|
}
|