import { jsx as o } 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 { ReportsOverview as s } from "../ReportsOverview/ReportsOverview.js";
import { BASE_CLASS as u } from "./constants.js";
function f({ ...r }) {
  const { balanceAccounts: e, isBalanceAccountIdWrong: n, isFetching: t, error: a } = c(r.balanceAccountId);
  return /* @__PURE__ */ o(
    i,
    {
      balanceAccountsError: a,
      className: u,
      errorMessage: "reports.overview.errors.unavailable",
      isBalanceAccountIdWrong: n,
      onContactSupport: r.onContactSupport,
      children: /* @__PURE__ */ o(s, { ...r, balanceAccounts: e, isLoadingBalanceAccount: t })
    }
  );
}
export {
  f as default
};
