dialog
This commit is contained in:
1 parent
1552018796
commit
d69cec9730
5 files changed
+154
-32
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import { zodResolver } from "@hookform/resolvers/zod";
|
||||
import { inviteSchema, type InviteFormData } from "@/Validation/invite";
|
||||
|
||||
export const useInviteForm = () => {
|
||||
const defaults: InviteFormData = {
|
||||
email: "",
|
||||
role: ["user"],
|
||||
};
|
||||
|
||||
return {
|
||||
resolver: zodResolver(inviteSchema),
|
||||
defaults,
|
||||
};
|
||||
};
|
||||
Reference in new issue
Block a user