@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
17 lines • 677 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.useSwapLiveConfig = useSwapLiveConfig;
const featureFlags_1 = require("../../../../featureFlags");
/**
* This hook is used to retrieve the configuration for the Swap Live App.
* The `ptxSwapLiveApp` feature flag is always true, but it is used
* to obtain the manifest ID that loads the URL for the live app in production,
* stg, or ppr environments.
*
* @returns The feature flag configuration for `ptxSwapLiveApp`.
*/
function useSwapLiveConfig() {
const config = (0, featureFlags_1.useFeature)("ptxSwapLiveApp");
return config;
}
//# sourceMappingURL=useSwapLiveConfig.js.map