import { cn } from '@/lib/utils';

export function TenantStatusBadge({ status }: { status: string }) {
  const active = status === 'ACTIVE';
  return (
    <span className={cn('inline-flex items-center gap-1.5 rounded-pill px-2.5 py-0.5 text-caption font-semibold', active ? 'bg-success-soft text-success' : 'bg-danger-soft text-danger')}>
      <span className={cn('h-1.5 w-1.5 rounded-full', active ? 'bg-success' : 'bg-danger')} aria-hidden="true" />
      {active ? 'Active' : 'Suspended'}
    </span>
  );
}
