import React from "react"; // next import Link from "next/link"; // headless ui import { Menu, Transition } from "@headlessui/react"; // icons import { ChevronDownIcon } from "@heroicons/react/20/solid"; // commons import { classNames } from "constants/common"; // types import type { MenuItemProps, Props } from "./types"; const CustomMenu = ({ children, label, textAlignment }: Props) => { return (
{label}
{children}
); }; const MenuItem: React.FC = ({ children, renderAs, href, onClick }) => { return ( {({ active }) => renderAs === "a" ? ( {children} ) : ( ) } ); }; CustomMenu.MenuItem = MenuItem; export default CustomMenu;