import { Check, ChevronsUpDown, Plus } from 'lucide-react' import Link from 'next/link' import { useState } from 'react' import { Button, ButtonProps, cn, Command_Shadcn_, CommandEmpty_Shadcn_, CommandGroup_Shadcn_, CommandInput_Shadcn_, CommandItem_Shadcn_, CommandList_Shadcn_, CommandSeparator_Shadcn_, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogSection, DialogTitle, DialogTrigger, Popover_Shadcn_, PopoverContent_Shadcn_, PopoverTrigger_Shadcn_, } from 'ui' import { Organization } from '~/data/organizations' interface UpgradePlanProps { organizations?: Organization[] onClick?: () => void size?: ButtonProps['size'] } const UpgradePlan = ({ organizations = [], onClick, size = 'large' }: UpgradePlanProps) => { const [open, setOpen] = useState(false) const [value, setValue] = useState('') return ( Upgrade organization Choose the organization you want to upgrade to a paid plan. No organizations found. {organizations.map((organization) => ( { setValue(currentValue === value ? '' : currentValue) setOpen(false) }} keywords={[organization.name]} > {organization.name} ))} { setValue(currentValue === value ? '' : currentValue) setOpen(false) }} keywords={['Create a new organization']} > Create a new organization Upon continuing, you will be redirected to the organization's billing page where you can upgrade to a paid plan. ) } export default UpgradePlan