import React, { forwardRef } from "react";
import { base, StyledButton, IconWrapper, Description } from "./EmptyState.styles";
/**
 * Компонент для альтернативного показа содержимого выпадающего списка.
 */ export const emptyStateRoot = (Root)=>/*#__PURE__*/ forwardRef((props, ref)=>{
        const { icon, description, buttonText, buttonAction } = props;
        return /*#__PURE__*/ React.createElement(Root, {
            ...props,
            ref: ref
        }, icon && /*#__PURE__*/ React.createElement(IconWrapper, null, icon), /*#__PURE__*/ React.createElement(Description, null, description), buttonText && /*#__PURE__*/ React.createElement(StyledButton, {
            stretching: "filled",
            onClick: buttonAction
        }, buttonText));
    });
export const emptyStateConfig = {
    name: 'EmptyState',
    tag: 'div',
    layout: emptyStateRoot,
    base,
    defaults: {
        size: 'l'
    },
    variations: {}
};
