import { Badge } from "@mantine/core";

const colorMap: Record<string, string> = {
  success: "green",
  failed: "red",
  running: "blue",
  pending: "gray",
  cancelled: "yellow",
  skipped: "dimmed",
};

export function StatusBadge({ status }: { status: string }) {
  return (
    <Badge color={colorMap[status] || "gray"} variant="light" size="sm">
      {status}
    </Badge>
  );
}
