Add trust center v2

Signed-off-by: Jonathan <contact@grafikart.fr>
This commit is contained in:
Jonathan
2025-09-26 16:42:52 +02:00
committed by Sacha Al Himdani
parent 44898be9d3
commit 55e85e5f67
182 changed files with 4609 additions and 425 deletions

View File

@@ -1,10 +1,10 @@
import { useForm } from "react-hook-form";
import type { z, ZodType } from "zod";
import type { z, ZodTypeAny } from "zod";
import { zodResolver } from "@hookform/resolvers/zod";
export function useFormWithSchema<T extends ZodType<any, any, any>>(
export function useFormWithSchema<T extends ZodTypeAny>(
schema: T,
options: Parameters<typeof useForm<z.infer<T>>>[0]
options: Parameters<typeof useForm<z.infer<T>>>[0],
) {
return useForm<z.infer<T>>({
...options,