import { Check, ChevronsUpDown } from "lucide-react"; import { cn } from "@/lib/utils"; import { Button } from "@/components/ui/button"; import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, } from "@/components/ui/command"; import { Popover, PopoverContent, PopoverTrigger, } from "@/components/ui/popover"; import { Dispatch, SetStateAction } from "react"; const ModelPicker = ({ open, setOpen, value, setValue, modelli, }: { open: boolean; setOpen: Dispatch>; value: any; setValue: Dispatch>; modelli: Array; }) => { return ( No framework found. {modelli.map((modello) => ( { setValue(currentValue === value ? "" : currentValue); setOpen(false); }} > {modello.label} ))} ); }; export default ModelPicker;