'use client'; type MenuBurgerButtonProps = { state: boolean; onStateChange?: (value: boolean) => void; }; export const MenuBurgerButton = ({ state, onStateChange, }: MenuBurgerButtonProps) => { state = state ?? false; // This function is called when the button is clicked const handleClick = () => { if (onStateChange) onStateChange(!state); }; return (