import { classNames } from "@documenso/lib";
import { Listbox, Transition } from "@headlessui/react";
import { CheckIcon, ChevronUpDownIcon } from "@heroicons/react/24/outline";
import React, { Fragment, useState } from "react";
export function SelectBox(props: any) {
return (
{
props.onChange(e);
}}
>
{({ open }) => (
<>
{props.label}
{props?.value?.label}
{props.options.map((option: any) => (
classNames(
active ? "text-white bg-neon" : "text-gray-900",
"relative cursor-default select-none py-2 pl-3 pr-9"
)
}
value={option}
>
{({ selected, active }) => (
<>
{option.label}
{option.value === props.value.value ? (
) : null}
>
)}
))}
>
)}
);
}