"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NoData = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const react_1 = require("react");
const Button_1 = require("../../Button");
const ConfigProvider_1 = require("../../ConfigProvider");
const Placeholder_1 = require("../../placeholders/Placeholder");
const NoData = ({ title = 'Нет\u00a0данных', imgAlt = title, action, size = 'small', }) => {
    const { imagesMap: { noDataImgSrc }, } = (0, react_1.useContext)(ConfigProvider_1.ConfigContext);
    return ((0, jsx_runtime_1.jsx)(Placeholder_1.Placeholder, { title: title, imgSrc: noDataImgSrc, size: size, Actions: action ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: action.onClick, "aria-label": action.text, children: action.text })) : undefined, imgAlt: imgAlt }));
};
exports.NoData = NoData;
