import React from "react"; import { useTranslation } from "react-i18next"; import { Button, ClipboardCopy, FormGroup, Split, SplitItem, } from "@patternfly/react-core"; import { useFormContext } from "react-hook-form"; import type ClientRepresentation from "@keycloak/keycloak-admin-client/lib/defs/clientRepresentation"; export type ClientSecretProps = { secret: string; toggle: () => void; }; export const ClientSecret = ({ secret, toggle }: ClientSecretProps) => { const { t } = useTranslation("clients"); const { formState } = useFormContext(); return ( {secret} ); };