@funkit/connect
Version:
Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.
17 lines (16 loc) • 679 B
TypeScript
import React from 'react';
import type { ApprovalMethod } from '../../providers/FunkitQuoteContext';
interface ApprovalMethodToggleProps {
value: ApprovalMethod;
onChange: (next: ApprovalMethod) => void;
disabled?: boolean;
testId?: string;
}
/**
* A small dropdown selector for the user's preferred source-side
* authorization method ("Approve transaction" vs "Signed message"),
* with an adjacent info tooltip explaining the trade-off. Mounted on
* the `InputAmount` step; state lives in `FunkitQuoteContext`.
*/
export declare function ApprovalMethodToggle({ value, onChange, disabled, testId, }: ApprovalMethodToggleProps): React.JSX.Element;
export {};