import { Activity, CheckCircle2, Clock3, XCircle } from "lucide-react";

import type { JobStatus } from "../types";

export function StatusIcon({ status, size = 16 }: { status: JobStatus; size?: number }) {
  if (status === "succeeded") return <CheckCircle2 size={size} />;
  if (status === "failed") return <XCircle size={size} />;
  if (status === "running") return <Activity size={size} />;
  return <Clock3 size={size} />;
}
