summaryrefslogtreecommitdiff
path: root/src-migrate/modules/register/components/FormCaptcha.tsx
blob: fbea2b10be54d51729c9fef100b2e11f770da120 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { ReCaptcha } from '~/components/ui/re-captcha'
import { useRegisterStore } from "../stores/useRegisterStore";

const FormCaptcha = () => {
  const { updateValidCaptcha } = useRegisterStore()

  const handleCaptchaChange = (value: string | null) => {
    updateValidCaptcha(value !== null)
  }

  return <ReCaptcha onChange={handleCaptchaChange} />
}

export default FormCaptcha