pay-sdk-react
Version:
A cross-platform payment SDK for React, supporting Alipay, WeChat Pay, PayPal, Stripe, Payssion, and Airwallex, compatible with H5, PC, and App environments.
11 lines (10 loc) • 346 B
TypeScript
import type { FC, ReactElement } from 'react';
interface Props {
active: boolean;
forceRender?: boolean;
destroyOnClose?: boolean;
children: ReactElement;
}
export declare const ShouldRender: FC<Props>;
export declare function useShouldRender(active: boolean, forceRender?: boolean, destroyOnClose?: boolean): boolean;
export {};