import React from "react"; import Link from "next/link"; // headless ui import { Menu, Transition } from "@headlessui/react"; // icons import { DropdownProps, Icon } from "components/ui"; import { ChevronDownIcon } from "@heroicons/react/24/outline"; export type CustomMenuProps = DropdownProps & { children: React.ReactNode; ellipsis?: boolean; noBorder?: boolean; verticalEllipsis?: boolean; menuButtonOnClick?: (...args: any) => void; }; const CustomMenu = ({ buttonClassName = "", children, className = "", customButton, disabled = false, ellipsis = false, label, maxHeight = "md", noBorder = false, noChevron = false, optionsClassName = "", position = "right", selfPositioned = false, verticalEllipsis = false, verticalPosition = "bottom", width = "auto", menuButtonOnClick, }: CustomMenuProps) => (
); type MenuItemProps = { children: React.ReactNode; renderAs?: "button" | "a"; href?: string; onClick?: (args?: any) => void; className?: string; }; const MenuItem: React.FC