"use client" import type { FieldValues } from "react-hook-form" import { FormProvider } from "react-hook-form" import type { RhformProps } from "./types" import { cn } from "@/shared/lib/utils" export function Rhform({ form, onSubmit, children, className, }: RhformProps) { return (
{ e.stopPropagation(); form.handleSubmit(onSubmit)(e) }} noValidate className={cn('p-1',className)} > {children}
) }