@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
14 lines • 637 B
TypeScript
import { Account, AccountLike } from "@ledgerhq/types-live";
import { SwapSelectorStateType, SwapDataType, SwapTransactionType } from "../types";
export declare const useToState: ({ accounts, fromCurrencyAccount, }: {
accounts: Account[] | undefined;
fromCurrencyAccount: AccountLike | undefined;
}) => {
toState: SwapSelectorStateType;
toCurrencies: string[];
setToAccount: SwapTransactionType["setToAccount"];
setToAmount: SwapTransactionType["setToAmount"];
setToCurrency: SwapTransactionType["setToCurrency"];
targetAccounts: SwapDataType["targetAccounts"];
};
//# sourceMappingURL=useToState.d.ts.map