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