mirror of
https://github.com/koreanbots/core.git
synced 2025-12-15 14:10:22 +00:00
15 lines
402 B
TypeScript
15 lines
402 B
TypeScript
import { Ref } from 'react'
|
|
import HCaptcha from '@hcaptcha/react-hcaptcha'
|
|
|
|
|
|
const Captcha = ({ dark, onVerify }:CaptchaProps):JSX.Element => {
|
|
return <HCaptcha sitekey='43e556b4-cc90-494f-b100-378b906bb736' theme={dark ? 'dark' : 'light'} onVerify={onVerify}/>
|
|
}
|
|
|
|
interface CaptchaProps {
|
|
dark: boolean
|
|
onVerify(token: string, eKey?: string): void
|
|
ref?: Ref<HCaptcha>
|
|
}
|
|
|
|
export default Captcha |