@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
25 lines • 1.02 kB
TypeScript
import type { AddressSearchResult } from "../types";
type UseRecipientSearchStateProps = {
searchValue: string;
result: AddressSearchResult;
isLoading: boolean;
recipientSupportsDomain: boolean;
};
export declare function useRecipientSearchState({ searchValue, result, isLoading, recipientSupportsDomain, }: UseRecipientSearchStateProps): {
showSearchResults: boolean;
showMatchedAddress: boolean;
showAddressValidationError: boolean;
showEmptyState: boolean;
showBridgeSenderError: boolean;
showSanctionedBanner: boolean;
showBridgeRecipientError: boolean;
showBridgeRecipientWarning: boolean;
isSanctioned: boolean;
isAddressComplete: boolean;
addressValidationErrorType: "sanctioned" | "incorrect_format" | "incompatible_asset" | "wallet_not_exist" | null;
bridgeRecipientError: Error | undefined;
bridgeRecipientWarning: Error | undefined;
bridgeSenderError: Error | undefined;
};
export {};
//# sourceMappingURL=useRecipientSearchState.d.ts.map