@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
23 lines • 892 B
TypeScript
import { WalletPlatform, WalletFeaturesConfig } from "./types";
/**
* Hook for wallet4.0 configuration.
* Works for both desktop (lwdWallet40) and mobile (lwmWallet40).
*
* When adding platform-specific params in types-live:
* 1. Add the param to Feature_LwdWallet40 or Feature_LwmWallet40
* 2. Add the corresponding boolean getter in WalletFeaturesConfig
* 3. Add the logic in the useMemo below
*
* @param platform - The platform to get the feature flag for ("desktop" or "mobile")
* @returns Configuration object with boolean flags for each feature
*
* @example
* // Desktop usage
* const config = useWalletFeaturesConfig("desktop");
*
* @example
* // Mobile usage
* const config = useWalletFeaturesConfig("mobile");
*/
export declare const useWalletFeaturesConfig: (platform: WalletPlatform) => WalletFeaturesConfig;
//# sourceMappingURL=useWalletFeaturesConfig.d.ts.map