import { __assign, __rest } from "tslib";
import React, { forwardRef, cloneElement } from "react";
import { StatusStyled } from "./styles";
var Status = forwardRef(function (_a, ref) {
    var leadIcon = _a.leadIcon, isFilled = _a.isFilled, trailIcon = _a.trailIcon, children = _a.children, status = _a.status, className = _a.className, props = __rest(_a, ["leadIcon", "isFilled", "trailIcon", "children", "status", "className"]);
    return (React.createElement(StatusStyled, __assign({ status: status, isFilled: isFilled, className: className, ref: ref }, props),
        leadIcon && cloneElement(leadIcon, { className: "status__icon" }),
        children,
        trailIcon && cloneElement(trailIcon, { className: "status__icon" })));
});
Status.displayName = "Status";
export default Status;
