import { ChevronDownIcon } from 'lucide-react' import { useState } from 'react' import { Button, CheckIcon, cn, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, Label, Popover, PopoverContent, PopoverTrigger, } from 'ui' import { useOrganizationsQuery } from '@/data/organizations/organizations-query' import { Organization } from '@/types' export const OrganizationSelect = ({ organization: selectedOrganization, onOrganizationChange, }: { organization: Organization onOrganizationChange: (slug: string) => void }) => { const [open, setOpen] = useState(false) const { data } = useOrganizationsQuery() return (