@wojtekmaj/react-recaptcha-v3
Version:
Integrate Google reCAPTCHA v3 with your React app
14 lines (9 loc) • 385 B
text/typescript
import { createContext } from 'react';
import type { ReCaptchaInstance } from './types.js';
export type ReCaptchaContextType = {
container?: string | HTMLElement;
executeRecaptcha?: (action?: string) => Promise<string> | null;
reCaptchaInstance?: ReCaptchaInstance | null;
};
const ReCaptchaContext = createContext<ReCaptchaContextType>({});
export default ReCaptchaContext;