import { CheckCircle, HighlightOff, ErrorOutline } from "@mui/icons-material";

export const getStatusIcon = (status: "pending" | "passed" | "failed") => {
  switch (status) {
    case "passed":
      return CheckCircle;
    case "failed":
      return HighlightOff;
    default:
      return ErrorOutline;
  }
};

export const getStatusColor = (
  status: "pending" | "passed" | "failed",
): string => {
  switch (status) {
    case "passed":
      return "bg-green-100 text-green-800 border-green-300";
    case "failed":
      return "bg-red-100 text-red-800 border-red-300";
    default:
      return "bg-yellow-100 text-yellow-800 border-yellow-300";
  }
};

export const getStatusColorSimple = (
  status: "pending" | "passed" | "failed",
): string => {
  switch (status) {
    case "passed":
      return "bg-green-100 text-green-800";
    case "failed":
      return "bg-red-100 text-red-800";
    default:
      return "bg-yellow-100 text-yellow-800";
  }
};
