import { Badge } from "@/components/ui/badge";

export function quotationStatusBadge(status: string) {
  const map: Record<string, { label: string; cls: string }> = {
    draft: { label: "ড্রাফট", cls: "bg-gray-200 text-gray-700" },
    submitted: { label: "জমা", cls: "bg-blue-100 text-blue-700" },
    approved: { label: "অনুমোদিত", cls: "bg-green-100 text-green-700" },
    rejected: { label: "প্রত্যাখ্যাত", cls: "bg-red-100 text-red-700" },
  };
  const m = map[status] || map.draft;
  return <Badge className={m.cls + " border-0"}>{m.label}</Badge>;
}
