import React, { ReactNode } from 'react' import { CaretSortIcon, CheckIcon } from '@radix-ui/react-icons' import { Button } from '@/components/ui/button' import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem } from '@/components/ui/command' import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover' import { cn } from '@/lib/utils' export function popOverFns( open: boolean, setOpen: React.Dispatch>, value: string, setValue: React.Dispatch>, values: string[] ): ReactNode { return ( No functions found. {values.map((framework) => ( { setValue(currentValue === value ? '' : currentValue) setOpen(false) }}> {framework} ))} ) }