@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
12 lines • 804 B
TypeScript
import type { CryptoOrTokenCurrency } from "@ledgerhq/types-cryptoassets";
import type { ReactElement } from "react";
import { NetworkConfigurationOptions, Network, BalanceUI, NetworkLeftElementKind, NetworkRightElementKind } from "../utils/type";
export type NetworksWithComponents = CryptoOrTokenCurrency & Network & {
balanceData?: BalanceUI;
count?: number;
apy?: ReactElement;
description?: string;
};
export declare const sortNetworks: (result: NetworksWithComponents[], leftElement?: NetworkLeftElementKind, rightElement?: NetworkRightElementKind) => NetworksWithComponents[];
export declare function useNetworkConfiguration(networks: CryptoOrTokenCurrency[], options: NetworkConfigurationOptions): NetworksWithComponents[];
//# sourceMappingURL=createNetworkConfiguration.d.ts.map