@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
16 lines (13 loc) • 488 B
text/typescript
import { useFeature } from "../../../../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`.
*/
export function useSwapLiveConfig() {
const config = useFeature("ptxSwapLiveApp");
return config;
}