"use client"; import type { FieldConfig } from "@/types/form"; import type { UseFormRegister, FieldValues, FieldErrors } from "react-hook-form"; interface FieldRendererProps { field: FieldConfig; register: UseFormRegister; errors: FieldErrors; /** For readonly display fields, the value to render. */ readonlyValue?: unknown; } /** * Renders a single field appropriate to its `type`. All inputs share a common * accessibility scaffold: a real