import React from 'react';
import { EmptyState } from '../../empty-state';
import { useTranslation } from '../../hooks/use-translation';
import { jsx as _jsx } from "react/jsx-runtime";
export function EmptyStateWrapper({
  isFiltersApplied,
  noItemsFoundText,
  noItemsFoundDescription,
  noItemsText,
  noItemsDescription,
  noItemsImgSrc,
  noItemsActionParams,
  testId,
  altText
}) {
  const {
    t
  } = 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__*/_jsx(EmptyState, {
    title: isFiltersApplied ? noItemsFoundTextWithDefault : noItemsTextWithDefault,
    originalImageSize: true,
    description: isFiltersApplied ? noItemsFoundDescriptionWithDefault : noItemsDescription,
    imageSrc: isFiltersApplied ? undefined : noItemsImgSrc,
    actionParams: isFiltersApplied ? undefined : noItemsActionParams,
    testId: testId,
    altText: altText
  });
}