import { Badge } from "@/components/ui/badge";
import type { ClaimStatusDto } from "@/lib/api/types";

interface StatusBadgeProps {
  status: ClaimStatusDto;
}

export function StatusBadge({ status }: StatusBadgeProps) {
  const config = {
    active: { variant: "default" as const, label: "Active" },
    deprecated: { variant: "secondary" as const, label: "Deprecated" },
    superseded: { variant: "outline" as const, label: "Superseded" },
  };

  const { variant, label } = config[status];

  return <Badge variant={variant}>{label}</Badge>;
}
