import Pill from "../Pill/Pill";
import { Blue, Red, Yellow } from "../../../Types/BrandColors";
import WorkflowStatus from "../../../Types/Workflow/WorkflowStatus";
import React from "react";
const WorkflowStatusElement = (props) => {
    if (props.status === WorkflowStatus.Success) {
        return React.createElement(Pill, { color: Blue, text: "Executed" });
    }
    if (props.status === WorkflowStatus.Running) {
        return React.createElement(Pill, { color: Yellow, text: "Running" });
    }
    if (props.status === WorkflowStatus.Scheduled) {
        return React.createElement(Pill, { color: Yellow, text: "Scheduled" });
    }
    if (props.status === WorkflowStatus.Waiting) {
        return React.createElement(Pill, { color: Yellow, text: "Waiting" });
    }
    if (props.status === WorkflowStatus.Error) {
        return React.createElement(Pill, { color: Red, text: "Error" });
    }
    if (props.status === WorkflowStatus.Timeout) {
        return React.createElement(Pill, { color: Red, text: "Timeout" });
    }
    if (props.status === WorkflowStatus.WorkflowCountExceeded) {
        return React.createElement(Pill, { color: Red, text: "Execution Exceeded Current Plan" });
    }
    return React.createElement(Pill, { color: Yellow, text: "Unknown" });
};
export default WorkflowStatusElement;
//# sourceMappingURL=WorkflowStatus.js.map