import React from "react";
import { CircularProgress } from "@equinor/eds-core-react";
const StatusIndicator = ({ progress, label, }) => {
    if (typeof progress === "boolean") {
        progress = progress ? 100 : 0;
    }
    if (progress >= 100) {
        return null;
    }
    return (React.createElement("div", null,
        React.createElement(CircularProgress, { size: 48, value: progress, variant: "determinate" }),
        React.createElement("br", null),
        label));
};
export default StatusIndicator;
//# sourceMappingURL=StatusIndicator.js.map