import { Button, Form, FormButtons, FormField, FormSubmitButton, ListItem, PasswordField, Select, TextField, } from '@umami/react-zen'; import { useMessages, useUpdateQuery } from '@/components/hooks'; import { ROLES } from '@/lib/constants'; export function UserAddForm({ onSave, onClose }) { const { mutateAsync, error, isPending } = useUpdateQuery(`/users`); const { formatMessage, labels, getErrorMessage } = useMessages(); const handleSubmit = async (data: any) => { await mutateAsync(data, { onSuccess: async () => { onSave(data); onClose(); }, }); }; return (
); }