import { Check } from 'lucide-react' import { cn } from 'ui' import { CommandItemLink } from '@/components/ui/CommandItemLink' import PartnerIcon from '@/components/ui/PartnerIcon' import type { Organization } from '@/types' export interface OrgCommandItemProps { org: Organization selectedSlug: string | undefined routePathname: string hasRouteSlug: boolean onClose: () => void compactPadding?: boolean } export function OrgCommandItem({ org, selectedSlug, routePathname, hasRouteSlug, onClose, compactPadding = false, }: OrgCommandItemProps) { const href = hasRouteSlug ? routePathname.replace('[slug]', org.slug) : `/org/${org.slug}` return (
{org.name}
{org.slug === selectedSlug && }
) }