"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.EmptyStateWrapper = EmptyStateWrapper;
var _react = _interopRequireDefault(require("react"));
var _emptyState = require("../../empty-state");
var _useTranslation = require("../../hooks/use-translation");
var _jsxRuntime = require("react/jsx-runtime");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
function EmptyStateWrapper({
  isFiltersApplied,
  noItemsFoundText,
  noItemsFoundDescription,
  noItemsText,
  noItemsDescription,
  noItemsImgSrc,
  noItemsActionParams,
  testId,
  altText
}) {
  const {
    t
  } = (0, _useTranslation.useTranslation)();
  const noItemsFoundTextWithDefault = noItemsFoundText ?? t('No records found');
  const noItemsTextWithDefault = noItemsText ?? t('No Records');
  const noItemsFoundDescriptionWithDefault = noItemsFoundDescription ?? t('Consider adjusting your filters or search');
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_emptyState.EmptyState, {
    title: isFiltersApplied ? noItemsFoundTextWithDefault : noItemsTextWithDefault,
    originalImageSize: true,
    description: isFiltersApplied ? noItemsFoundDescriptionWithDefault : noItemsDescription,
    imageSrc: isFiltersApplied ? undefined : noItemsImgSrc,
    actionParams: isFiltersApplied ? undefined : noItemsActionParams,
    testId: testId,
    altText: altText
  });
}