"use client";

import { AdminBadge } from "@/components/admin/design-system";

const STATUS_BADGE_MAP: Record<string, "default" | "success" | "warning" | "danger" | "info"> = {
  pending: "warning",
  awaiting_deposit: "info",
  confirmed: "info",
  fulfilled: "success",
};

const STATUS_BADGE_LABEL: Record<string, string> = {
  pending: "Pending",
  awaiting_deposit: "Awaiting Deposit",
  confirmed: "Confirmed",
  fulfilled: "Fulfilled",
};

export default function StatusBadge({ status }: { status: string }) {
  return (
    <AdminBadge variant={STATUS_BADGE_MAP[status] ?? "default"}>
      {STATUS_BADGE_LABEL[status] ?? status}
    </AdminBadge>
  );
}
