initial commit

This commit is contained in:
Alex Holliday committed 2025-11-13 13:47:26 -08:00
1 parent 7cb985116e
commit 75acf7b38f
955 files changed
+37333 -87054

No files matched your search

@@ -0,0 +1,16 @@
import { recoverySchema } from "@/validation/zod";
import { useMemo } from "react";
import { z } from "zod";
export const useInitForm = ({
initialData,
}: {
initialData: Partial<z.infer<typeof recoverySchema>> | undefined;
}) => {
return useMemo(() => {
const defaults: z.infer<typeof recoverySchema> = {
email: initialData?.email || "",
};
return { defaults };
}, [initialData]);
};