"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NoDataPlaceholder = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const react_1 = require("react");
const ConfigProvider_1 = require("../../ConfigProvider");
const Placeholder_1 = require("../../placeholders/Placeholder");
const constants_1 = require("./constants");
const NoDataPlaceholder = ({ noDataImgSrc }) => {
    const { imagesMap } = (0, react_1.useContext)(ConfigProvider_1.ConfigContext);
    const { noDataImgSrc: configProviderNoDataImgSrc } = imagesMap;
    return ((0, jsx_runtime_1.jsx)(Placeholder_1.Placeholder, { title: constants_1.NO_DATA_TEXT, imgSrc: noDataImgSrc ?? configProviderNoDataImgSrc, size: "medium" }));
};
exports.NoDataPlaceholder = NoDataPlaceholder;
