import React from "react"; import { ActionGroup, Button, FormGroup, TextArea, TextInput, // ValidatedOptions, } from "@patternfly/react-core"; import { useTranslation } from "react-i18next"; import { UseFormMethods } from "react-hook-form"; import { FormAccess } from "../components/form-access/FormAccess"; import UserRepresentation from "keycloak-admin/lib/defs/userRepresentation"; // import { RoleFormType } from "./RealmRoleTabs"; export type UserFormProps = { form: UseFormMethods; save: (user: UserRepresentation) => void; editMode: boolean; reset: () => void; }; export const UserForm = ({ form, save, editMode, reset, }: UserFormProps) => { const { t } = useTranslation("users"); return (