import { Field, Label, Listbox, ListboxButton, ListboxOptions, ListboxOption, Transition, } from '@headlessui/react' import type { ComponentProps } from 'react' import Arrow from '@images/icons/down.inline.svg' import { Fragment } from 'react' type OwnProps = { label: string options: readonly T[] value: T onChange: (newValue: T) => void } type Props = Omit, keyof OwnProps> & OwnProps export const Select = ({ options, label, ...props }: Props) => ( {({ open }) => ( <> {props.value} {options.map((option) => ( {option} ))} )} )