import { Tab, TabTitleText } from "@patternfly/react-core"; import React from "react"; import { useTranslation } from "react-i18next"; import { useHistory } from "react-router-dom"; import { routableTab, RoutableTabs, } from "../../components/routable-tabs/RoutableTabs"; import { useRealm } from "../../context/realm-context/RealmContext"; import { toUserProfile } from "../routes/UserProfile"; import { AttributesGroupTab } from "./AttributesGroupTab"; import { JsonEditorTab } from "./JsonEditorTab"; import { UserProfileProvider } from "./UserProfileContext"; export const UserProfileTab = () => { const { realm } = useRealm(); const { t } = useTranslation("realm-settings"); const history = useHistory(); return ( {t("attributes")}} {...routableTab({ to: toUserProfile({ realm, tab: "attributes" }), history, })} > {t("attributesGroup")}} data-testid="attributesGroupTab" {...routableTab({ to: toUserProfile({ realm, tab: "attributesGroup" }), history, })} > {t("jsonEditor")}} {...routableTab({ to: toUserProfile({ realm, tab: "jsonEditor" }), history, })} > ); };