@keycloakify/keycloak-admin-ui
Version:
Repackaged Keycloak Admin UI
10 lines • 713 B
JavaScript
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
import { useTranslation } from "react-i18next";
import { TextAreaControl, TextControl } from "../../../ui-shared";
export const NameDescription = ({ isDisabled }) => {
const { t } = useTranslation();
return (_jsxs(_Fragment, { children: [_jsx(TextControl, { name: "name", label: t("name"), rules: { required: t("required") }, isDisabled: isDisabled }), _jsx(TextAreaControl, { name: "description", label: t("description"), rules: {
maxLength: { message: t("maxLength", { length: 255 }), value: 255 },
}, isDisabled: isDisabled })] }));
};
//# sourceMappingURL=NameDescription.js.map