(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define(["require", "exports", "tslib", "react", "./styles"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var tslib_1 = require("tslib");
    var react_1 = (0, tslib_1.__importStar)(require("react"));
    var styles_1 = require("./styles");
    var Status = (0, react_1.forwardRef)(function (_a, ref) {
        var leadIcon = _a.leadIcon, isFilled = _a.isFilled, trailIcon = _a.trailIcon, children = _a.children, status = _a.status, className = _a.className, props = (0, tslib_1.__rest)(_a, ["leadIcon", "isFilled", "trailIcon", "children", "status", "className"]);
        return (react_1.default.createElement(styles_1.StatusStyled, (0, tslib_1.__assign)({ status: status, isFilled: isFilled, className: className, ref: ref }, props),
            leadIcon && (0, react_1.cloneElement)(leadIcon, { className: "status__icon" }),
            children,
            trailIcon && (0, react_1.cloneElement)(trailIcon, { className: "status__icon" })));
    });
    Status.displayName = "Status";
    exports.default = Status;
});
