--- import { Icon } from 'astro-icon/components' import { isInputError, type ActionAccept, type ActionClient } from 'astro:actions' import { Image } from 'astro:assets' import { CAPTCHA_LENGTH, generateCaptcha } from '../lib/captcha' import { cn } from '../lib/cn' import type { HTMLAttributes } from 'astro/types' import type { z } from 'astro:content' type Props< TAccept extends ActionAccept, TInputSchema extends z.ZodType, TAction extends ActionClient, > = HTMLAttributes<'div'> & { action: TAction } const { class: className, action: formAction, autofocus, ...htmlProps } = Astro.props const result = Astro.getActionResult(formAction) const inputErrors = isInputError(result?.error) ? result.error.fields : {} const captcha = generateCaptcha() --- {/* eslint-disable astro/jsx-a11y/no-autofocus */}

This page requires a visual CAPTCHA to ensure you are a human. If you are unable to complete the CAPTCHA, please email us for assistance. contact@kycnot.me

{ inputErrors['captcha-value'] && (

{inputErrors['captcha-value'].join(', ')}

) }