import { useState as m, useCallback as i } from "../../../../../../external/.pnpm/preact@10.28.2/node_modules/preact/hooks/dist/hooks.module.js";
import a from "../../../../../../config/payByLink/termsRequirementsConfig.json.js";
import c from "../../../../../../core/Context/preact/useCoreContext.js";
const g = () => {
  const { getCdnConfig: s } = c(), e = a, [t, n] = m(e), o = i(async () => {
    const r = await s?.({
      subFolder: "payByLink",
      name: "termsRequirementsConfig",
      fallback: e
    });
    n(r ?? e);
  }, [s, e]);
  return {
    termsRequirementsConfig: t,
    getTermsRequirementsConfig: o
  };
};
export {
  g as useTermsRequirementsConfig
};
