import { Fragment, MouseEventHandler, ReactNode } from "react"; import { Menu, Transition } from "@headlessui/react"; import clsx from "clsx"; import Link from "next/link"; interface Props { right?: boolean; button?: ReactNode; to?: string; options?: ReactNode; children?: ReactNode; className?: string; onClick?: MouseEventHandler; disabled?: boolean; } export default function DropdownWithClick({ button, to, options, right, onClick, className, disabled }: Props) { return ( {to ? ( {button} ) : ( )}
{options}
); }