UNPKG

@funkit/connect

Version:

Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.

20 lines (19 loc) 820 B
import { type BrokerageOption } from '../consts/bluvo'; /** * Unified brokerage list combining static Bluvo exchanges and dynamic * Swapped Connect FOPs (CRYPTO_TO_CRYPTO). Used by SelectBrokerage and the * payment-method preview row. Live entries come first; ComingSoon (and * FOPs that came back without an embeddedFlowUrl) follow. */ export declare function useExchangeOptions({ iconSize }: { iconSize: number; }): { options: BrokerageOption[]; /** * True while the Swapped FOPs are stale placeholder data (kept visible during * a refetch triggered by a recipient/destination change). Callers that act on * a selection should gate Swapped options on this, since a stale FOP's * embedded flow URL may still target the previous recipient. */ isPlaceholderData: boolean; };