import React from 'react'; import CheckMark from '../svg/CheckMark.jsx'; import { Listbox, Transition } from '@headlessui/react'; import { cn } from '~/utils/'; function SelectDropDown({ title = 'Model', value, disabled, setValue, availableValues, showAbove = false, showLabel = true, containerClassName, subContainerClassName, className, }) { return (
{({ open }) => ( <> {' '} {showLabel && ( {title} )} {!showLabel && ( {title}: )} {value} {availableValues.map((option, i) => ( {option} {option === value && ( )} ))} )}
); } export default SelectDropDown;