/* eslint-disable */
// @ts-nocheck
import type UserRepresentation from "@keycloak/keycloak-admin-client/lib/defs/userRepresentation";
import {
CodeBlock,
CodeBlockAction,
EmptyState,
EmptyStateBody,
EmptyStateHeader,
TextArea,
} from "../../../shared/@patternfly/react-core";
import { useTranslation } from "react-i18next";
import { CopyToClipboardButton } from "../../components/copy-to-clipboard-button/CopyToClipboardButton";
type GeneratedCodeTabProps = {
user?: UserRepresentation;
text: string;
label: string;
};
export const GeneratedCodeTab = ({
text,
user,
label,
}: GeneratedCodeTabProps) => {
const { t } = useTranslation();
return user ? (
}
>
) : (
{t(`${label}No`)}>} headingLevel="h2" />
{t(`${label}IsDisabled`)}
);
};