UNPKG

@keycloakify/keycloak-admin-ui

Version:
14 lines 1.09 kB
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime"; import { useTranslation } from "react-i18next"; import { PasswordControl, TextControl } from "../../ui-shared"; export const StoreSettings = ({ hidePassword = false, isSaml = false, }) => { const { t } = useTranslation(); return (_jsxs(_Fragment, { children: [_jsx(TextControl, { name: "keyAlias", label: t("keyAlias"), labelIcon: t("keyAliasHelp"), rules: { required: t("required"), } }), !hidePassword && (_jsx(PasswordControl, { name: "keyPassword", label: t("keyPassword"), labelIcon: t("keyPasswordHelp"), rules: { required: t("required"), } })), isSaml && (_jsx(TextControl, { name: "realmAlias", label: t("realmCertificateAlias"), labelIcon: t("realmCertificateAliasHelp") })), _jsx(PasswordControl, { name: "storePassword", label: t("storePassword"), labelIcon: t("storePasswordHelp"), rules: { required: t("required"), } })] })); }; //# sourceMappingURL=StoreSettings.js.map