import { Turnstile, TurnstileInstance } from '@marsidev/react-turnstile' import { Ref, forwardRef } from 'react' export interface CaptchaProps { className?: string onError: () => void onExpire: () => void onSuccess: (token: string) => void } const Captcha = forwardRef((props: CaptchaProps, ref: Ref) => { const { className, onError, onExpire, onSuccess } = props return ( ) }) Captcha.displayName = 'Captcha' export default Captcha