dialog
This commit is contained in:
1 parent
1552018796
commit
d69cec9730
5 files changed
+154
-32
No files matched your search
@@ -0,0 +1,9 @@
|
||||
import { z } from "zod";
|
||||
import { UserRoles } from "@/Types/User";
|
||||
|
||||
export const inviteSchema = z.object({
|
||||
email: z.email("Please enter a valid email address"),
|
||||
role: z.array(z.enum(UserRoles)).min(1, "Please select a role"),
|
||||
});
|
||||
|
||||
export type InviteFormData = z.infer<typeof inviteSchema>;
|
||||
Reference in new issue
Block a user