@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
11 lines • 510 B
TypeScript
import { CryptoOrTokenCurrency } from "@ledgerhq/types-cryptoassets";
/**
* Hook that returns a predicate function to check if a currency or token is accepted.
* A currency is accepted if:
* - It is supported by the platform (via isCurrencySupported)
* - It is not deactivated by a feature flag
*
* For tokens, the parent currency is checked instead.
*/
export declare function useAcceptedCurrency(): (currencyOrToken: CryptoOrTokenCurrency) => boolean;
//# sourceMappingURL=useAcceptedCurrency.d.ts.map