summaryrefslogtreecommitdiff
path: root/src-migrate/common/components/elements/ReCaptcha.tsx
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2024-01-13 10:35:22 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2024-01-13 10:35:22 +0700
commitf62b2345f463695ef0f8f79830cd76b6e0332821 (patch)
treec06ff12a8312e3a02b0203f588db0f4da044c911 /src-migrate/common/components/elements/ReCaptcha.tsx
parentee0b5893ac039ab05fe8247647364a923d707da3 (diff)
Refactor src migrate folder
Diffstat (limited to 'src-migrate/common/components/elements/ReCaptcha.tsx')
-rw-r--r--src-migrate/common/components/elements/ReCaptcha.tsx17
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