import { Building2, Beaker, type LucideIcon } from 'lucide-react';
import type { Organization } from '@/types/organization';

/** Clinic → Building2, Lab → Beaker (switch-organization cards). */
export function organizationTypeIcon(type: Organization['type']): LucideIcon {
  return type === 'CLINIC' ? Building2 : Beaker;
}

/** Organizations tab lists counterpart orgs (labs for clinics, clinics for labs). */
export function counterpartOrganizationType(
  currentType: Organization['type'] | undefined,
): Organization['type'] {
  if (currentType === 'CLINIC') return 'LAB';
  if (currentType === 'LAB') return 'CLINIC';
  return 'CLINIC';
}
