diff options
Diffstat (limited to 'src-migrate/common/components/elements/ReCaptcha.tsx')
| -rw-r--r-- | src-migrate/common/components/elements/ReCaptcha.tsx | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src-migrate/common/components/elements/ReCaptcha.tsx b/src-migrate/common/components/elements/ReCaptcha.tsx deleted file mode 100644 index 1bc31d90..00000000 --- a/src-migrate/common/components/elements/ReCaptcha.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import ReCAPTCHA, { ReCAPTCHAProps } from "react-google-recaptcha" - -const GOOGLE_RECAPTCHA_KEY = process.env.NEXT_PUBLIC_RECAPTCHA_GOOGLE || '' - -type Props = Omit<ReCAPTCHAProps, 'sitekey'> & { - sitekey?: string; -} - -const ReCaptcha = (props: Props) => { - const { sitekey, ...rest } = props - - return ( - <ReCAPTCHA sitekey={sitekey || GOOGLE_RECAPTCHA_KEY} {...rest} /> - ) -} - -export default ReCaptcha
\ No newline at end of file |
