import { useConfigContext as s } from "../../../../core/ConfigContext/preact/context.js";
const a = () => {
  const { savePayByLinkSettings: e, getPayByLinkSettings: n, getPayByLinkTheme: t, updatePayByLinkTheme: i } = s().endpoints;
  return {
    themeEnabled: !!t && !!i,
    termsAndConditionsEnabled: !!n && !!e
  };
};
export {
  a as useSettingsPermission
};
