import { useMenuContext } from "@/lib/context/MenuProvider/hooks/useMenuContext"; import { ButtonType } from "@/lib/types/QuivrButton"; import styles from "./PageHeader.module.scss"; import { Icon } from "../ui/Icon/Icon"; import { QuivrButton } from "../ui/QuivrButton/QuivrButton"; type Props = { iconName: string; label: string; buttons: ButtonType[]; }; export const PageHeader = ({ iconName, label, buttons, }: Props): JSX.Element => { const { isOpened } = useMenuContext(); return (
{label}
{buttons.map((button, index) => ( ))}
); }; export default PageHeader;