import { __assign, __rest } from "tslib";
import React from "react";
import Button from "../Button";
import { EmptyStateWrapper, HeaderStyled, IconBox, TextStyled } from "./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 = __rest(_a, ["icon", "header", "className", "text", "width", "buttonIcon", "isButton", "buttonText"]);
    return (React.createElement(EmptyStateWrapper, __assign({ width: width, className: className }, props),
        icon && React.createElement(IconBox, null, icon),
        header && React.createElement(HeaderStyled, { type: "capricornus" }, header),
        text && React.createElement(TextStyled, { type: "corvus" }, text),
        isButton && (React.createElement(Button, { icon: buttonIcon, width: "100%" }, buttonText))));
};
export default EmptyState;
