import { Listbox } from '@headlessui/react' import styled from '@emotion/styled' import { ChevronDownIcon, ChevronUpIcon } from '@heroicons/react/solid' const StyledDiv = styled.div` min-height: 2.5rem; ` 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