import React from "react"; // headless ui import { Listbox } from "@headlessui/react"; // icons import { ChevronDownIcon } from "@heroicons/react/24/outline"; // types type Props = { value: any; placeholder: string | JSX.Element; className?: string; theme?: "white" | "purple"; onChange: (value: any) => void; icon?: () => React.ReactNode; children: React.ReactNode; }; const ListBox: React.FC = ({ value, onChange, placeholder, icon, children, className, theme, }) => { return (
{icon && icon()}

{placeholder}

{children}
); }; export { Listbox }; export default ListBox;