mui-extended
Version:
Extended UI Components built on Material UI
27 lines (26 loc) • 797 B
TypeScript
import { Component, PropsWithChildren } from "react";
declare global {
interface Window {
grecaptcha: {
enterprise: {
execute: (site_key: string, params: {
action: string;
}) => Promise<string>;
ready: (fn: () => void) => void;
};
};
}
}
type ReCaptchaContextType = {
getToken?: (action: string) => Promise<string>;
};
export declare const useReCaptchaContext: () => ReCaptchaContextType;
export declare class ReCaptchaProvider extends Component<PropsWithChildren<{
siteKey: string;
}>> {
constructor(props: any);
componentDidMount(): void;
getReCaptchaToken(action: string): Promise<string>;
render(): import("react/jsx-runtime").JSX.Element;
}
export {};