Remove old frontend

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Sacha Al Himdani
2025-06-13 13:38:48 -07:00
parent 2adfe50054
commit d6ba8e1072
646 changed files with 671 additions and 78623 deletions

View File

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