import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { CheckCircle2, Loader2, XCircle } from 'lucide-react';
import { CiStatus } from '../../../../../../packages/core/src/domain/generated/output.js';
import { Badge } from '../../ui/badge.js';
export function CiStatusBadge({ status }) {
    switch (status) {
        case CiStatus.Success:
            return (_jsxs(Badge, { className: "border-transparent bg-green-50 text-green-700 hover:bg-green-50", children: [_jsx(CheckCircle2, { className: "me-1 h-3.5 w-3.5" }), "Passing"] }));
        case CiStatus.Pending:
            return (_jsxs(Badge, { className: "border-transparent bg-yellow-50 text-yellow-700 hover:bg-yellow-50", children: [_jsx(Loader2, { className: "me-1 h-3.5 w-3.5 animate-spin" }), "Pending"] }));
        case CiStatus.Failure:
            return (_jsxs(Badge, { className: "border-transparent bg-red-50 text-red-700 hover:bg-red-50", children: [_jsx(XCircle, { className: "me-1 h-3.5 w-3.5" }), "Failing"] }));
    }
}
