import { useTranslation } from "react-i18next"; import { Button, Modal, ModalVariant, TextContent, Text, TextVariants, } from "@patternfly/react-core"; import type AccessTokenRepresentation from "@keycloak/keycloak-admin-client/lib/defs/accessTokenRepresentation"; import { KeycloakTextArea } from "../../components/keycloak-text-area/KeycloakTextArea"; import useToggle from "../../utils/useToggle"; import { prettyPrintJSON } from "../../util"; type AuthorizationDataModalProps = { data: AccessTokenRepresentation; }; export const AuthorizationDataModal = ({ data, }: AuthorizationDataModalProps) => { const { t } = useTranslation("clients"); const [show, toggle] = useToggle(); return ( <> {t("authData")} {t("authDataDescription")} } onClose={toggle} actions={[ , ]} > ); };