import { Fragment } from 'react' import { Menu, Transition } from '@headlessui/react' // import { ChevronDownIcon } from '@heroicons/react/solid' function classNames(...classes) { return classes.filter(Boolean).join(' ') } interface DropdownProps { label: string, options: { label: string, value: string }[] } export default function Dropdown(props: DropdownProps) { const { label, options } = props; return ( {label}
{options.map((option, i) => ( {({ active }) => ( {option.label} )} ))}
) }