/* eslint-disable @typescript-eslint/no-explicit-any */ import React from "react"; import { FormControllerProps } from "./form-controller.types"; import { FormAdapter } from "utils"; import { UseField } from "hooks"; export const FormController =
, Name extends string, Value>({ name, render, useField, ...validation }: FormControllerProps & { useField: UseField, any> }) => { const field = useField(name, validation as any); return <>{render(field)}; };