import React from 'react'; import CheckMark from '../svg/CheckMark'; import { Listbox, Transition } from '@headlessui/react'; import { cn } from '~/utils/'; type SelectDropDownProps = { id?: string; title?: string; value: string; disabled?: boolean; setValue: (value: string) => void; availableValues: string[]; showAbove?: boolean; showLabel?: boolean; containerClassName?: string; subContainerClassName?: string; className?: string; }; function SelectDropDown({ title = 'Model', value, disabled, setValue, availableValues, showAbove = false, showLabel = true, containerClassName, subContainerClassName, className, }: SelectDropDownProps) { const transitionProps = { className: 'top-full mt-3' }; if (showAbove) { transitionProps.className = 'bottom-full mb-3'; } return (