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