(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", "../Button", "./style"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var tslib_1 = require("tslib");
    var react_1 = (0, tslib_1.__importDefault)(require("react"));
    var Button_1 = (0, tslib_1.__importDefault)(require("../Button"));
    var style_1 = require("./style");
    var EmptyState = function (_a) {
        var icon = _a.icon, header = _a.header, className = _a.className, text = _a.text, width = _a.width, buttonIcon = _a.buttonIcon, isButton = _a.isButton, buttonText = _a.buttonText, props = (0, tslib_1.__rest)(_a, ["icon", "header", "className", "text", "width", "buttonIcon", "isButton", "buttonText"]);
        return (react_1.default.createElement(style_1.EmptyStateWrapper, (0, tslib_1.__assign)({ width: width, className: className }, props),
            icon && react_1.default.createElement(style_1.IconBox, null, icon),
            header && react_1.default.createElement(style_1.HeaderStyled, { type: "capricornus" }, header),
            text && react_1.default.createElement(style_1.TextStyled, { type: "corvus" }, text),
            isButton && (react_1.default.createElement(Button_1.default, { icon: buttonIcon, width: "100%" }, buttonText))));
    };
    exports.default = EmptyState;
});
