import { memo } from "react"; import Head from "next/head"; import HCaptcha from "@hcaptcha/react-hcaptcha"; import { useTheme } from "../../hooks/use-theme"; export type CaptchaProps = { size?: "normal" | "compact" | "invisible"; theme?: "light" | "dark"; id?: string; className?: string; // callbacks pulled verbatim from node_modules/@hcaptcha/react-hcaptcha/types/index.d.ts /* eslint-disable @typescript-eslint/no-explicit-any */ onExpire?: () => any; onOpen?: () => any; onClose?: () => any; onChalExpired?: () => any; onError?: (event: string) => any; onVerify?: (token: string) => any; onLoad?: () => any; /* eslint-enable @typescript-eslint/no-explicit-any */ }; const Captcha = ({ size = "normal", theme, id, className, ...rest }: CaptchaProps) => { const { resolvedTheme } = useTheme(); return ( <>
); }; export default memo(Captcha);