import { useState as s, useCallback as a, useEffect as e } from "../../../../../../external/.pnpm/preact@10.28.2/node_modules/preact/hooks/dist/hooks.module.js";
import f from "../../../../../../config/capital/pollingConfig.json.js";
import c from "../../../../../../core/Context/preact/useCoreContext.js";
const p = () => {
  const { getCdnConfig: l } = c(), o = f, [i, t] = s(o), n = a(async () => {
    const g = await l?.({
      subFolder: "capital",
      name: "pollingConfig",
      fallback: o
    });
    t(g ?? o);
  }, [l, o]);
  return e(() => {
    n();
  }, [n]), {
    pollingConfig: i,
    getPollingConfig: n
  };
};
export {
  p as usePollingConfig
};
