import { jsx as n } from "../../../../../external/.pnpm/preact@10.28.2/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js";
import c from "../../../../../hooks/useBalanceAccounts.js";
import i from "../../../../internal/DataOverviewContainer/DataOverviewContainer.js";
import { TransactionsOverview as s } from "../TransactionsOverview/TransactionsOverview.js";
import { BASE_CLASS as u } from "./constants.js";
function p({ ...r }) {
  const { balanceAccounts: o, isBalanceAccountIdWrong: a, isFetching: t, error: e } = c(r.balanceAccountId);
  return /* @__PURE__ */ n(
    i,
    {
      balanceAccountsError: e,
      className: u,
      errorMessage: "transactions.overview.errors.unavailable",
      isBalanceAccountIdWrong: a,
      onContactSupport: r.onContactSupport,
      children: /* @__PURE__ */ n(s, { ...r, balanceAccounts: o, isLoadingBalanceAccount: t })
    }
  );
}
export {
  p as default
};
