import React from "react"; import { useTranslation } from "react-i18next"; import { CodeBlock, CodeBlockAction, EmptyState, EmptyStateBody, TextArea, Title, } from "@patternfly/react-core"; import type UserRepresentation from "@keycloak/keycloak-admin-client/lib/defs/userRepresentation"; import { CopyToClipboardButton } from "./CopyToClipboardButton"; type GeneratedCodeTabProps = { user?: UserRepresentation; text: string; label: string; }; export const GeneratedCodeTab = ({ text, user, label, }: GeneratedCodeTabProps) => { const { t } = useTranslation("clients"); return user ? ( } >