@keycloakify/keycloak-admin-ui
Version:
Repackaged Keycloak Admin UI
15 lines • 1.25 kB
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { useTranslation } from "react-i18next";
import { TextControl, TextAreaControl } from "../ui-shared";
import { FormAccess } from "../components/form/FormAccess";
import { DefaultSwitchControl } from "../components/SwitchControl";
export const ClientDescription = ({ hasConfigureAccess: configure, }) => {
const { t } = useTranslation();
return (_jsxs(FormAccess, { role: "manage-clients", fineGrainedAccess: configure, unWrap: true, children: [_jsx(TextControl, { name: "clientId", label: t("clientId"), labelIcon: t("clientIdHelp"), rules: { required: { value: true, message: t("required") } } }), _jsx(TextControl, { name: "name", label: t("name"), labelIcon: t("clientNameHelp") }), _jsx(TextAreaControl, { name: "description", label: t("description"), labelIcon: t("clientDescriptionHelp"), rules: {
maxLength: {
value: 255,
message: t("maxLength", { length: 255 }),
},
} }), _jsx(DefaultSwitchControl, { name: "alwaysDisplayInConsole", label: t("alwaysDisplayInUI"), labelIcon: t("alwaysDisplayInUIHelp") })] }));
};
//# sourceMappingURL=ClientDescription.js.map