import { useState } from "react";
import { MenuNotch, type MenuNotchSection, type MenuNotchSocial, type MenuNotchTheme } from "@/components/ui/menu-notch";
import { IconInstagram, IconYoutube } from "@devigner-ui/icons";
const sections: MenuNotchSection[] = [
{
label: "Menu",
size: "lg",
links: [
{ label: "About", href: "/about" },
{ label: "Pricing", href: "/pricing" },
{ label: "Resources", href: "/resources" },
{ label: "Our features", href: "/features" },
],
},
{
label: "Legal",
links: [
{ label: "Privacy Policy", href: "/privacy" },
{ label: "Terms & Conditions", href: "/terms" },
],
},
];
const socials: MenuNotchSocial[] = [
{ label: "Instagram", href: "https://instagram.com", icon: <IconInstagram /> },
{ label: "YouTube", href: "https://youtube.com", icon: <IconYoutube /> },
];
export function Example() {
const [theme, setTheme] = useState<MenuNotchTheme>("light");
return (
<MenuNotch
sections={sections}
socials={socials}
defaultOpen
theme={theme}
onThemeChange={setTheme}
/>
);
}