UNPKG

next-recaptcha-v3

Version:

🤖 Next.js hook to add Google ReCaptcha to your application

15 lines (14 loc) • 518 B
import React from "react"; import type { useReCaptchaProps } from "./useReCaptcha.js"; interface WithReCaptchaProps extends useReCaptchaProps { } /** React HOC to generate ReCaptcha token * @example * withReCaptcha(MyComponent) */ declare function withReCaptcha<T extends WithReCaptchaProps = WithReCaptchaProps>(WrappedComponent: React.ComponentType<T>): { (props: Omit<T, keyof WithReCaptchaProps>): React.JSX.Element; displayName: string; }; export { withReCaptcha }; export type { WithReCaptchaProps };