blob: e31aa1e30efe313ac3118c70cbe8698fb5a74a66 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import ReCAPTCHA, { ReCAPTCHAProps } from "react-google-recaptcha"
const GOOGLE_RECAPTCHA_KEY = process.env.NEXT_PUBLIC_RECAPTCHA_GOOGLE || ''
export interface ReCaptchaProps extends Omit<ReCAPTCHAProps, 'sitekey'> {
sitekey?: string;
}
export const ReCaptcha = (props: ReCaptchaProps) => {
const { sitekey, ...rest } = props
return (
<ReCAPTCHA sitekey={sitekey || GOOGLE_RECAPTCHA_KEY} {...rest} />
)
}
|