import React, { ReactNode } from "react";
import StyledMenuButton from "./StyledMenuButton";

type MenuButtonProps = {
  children: ReactNode | string;
  className?: string;
  toggleMenu: () => void;
};

const MenuButton: React.FC<MenuButtonProps> = ({ children, className, toggleMenu }) => {
  return <StyledMenuButton className={className} onClick={toggleMenu}>{children}</StyledMenuButton>;
};

export default MenuButton;
