@roochnetwork/rooch-sdk-kit
Version:
Rooch SDK Kit
23 lines (22 loc) • 909 B
TypeScript
import type { ReactNode } from 'react';
type ControlledModalProps = {
/** The controlled open state of the dialog. */
open: boolean;
/** Event handler called when the open state of the dialog changes. */
onOpenChange: (open: boolean) => void;
defaultOpen?: never;
};
type UncontrolledModalProps = {
open?: never;
onOpenChange?: never;
/** The open state of the dialog when it is initially rendered. Use when you do not need to control its open state. */
defaultOpen?: boolean;
};
type FaucetModalProps = {
/** The trigger button that opens the dialog. */
trigger: NonNullable<ReactNode>;
inviter?: string;
swapRGas: () => void;
} & (ControlledModalProps | UncontrolledModalProps);
export declare function FaucetModal({ trigger, inviter, swapRGas, open, defaultOpen, onOpenChange, }: FaucetModalProps): import("react/jsx-runtime.js").JSX.Element;
export {};