import { Listbox } from '@headlessui/react' import { ChevronDownIcon, ChevronUpIcon } from '@heroicons/react/solid' const Select = ({ value, onChange, children, className = '' }) => { return (
{({ open }) => ( <>
{value} {open ? ( ) : ( )}
{open ? ( {children} ) : null} )}
) } const Option = ({ key, value, children }) => { return ( {({ selected }) => (
{children}
)}
) } Select.Option = Option export default Select