UNPKG

@keycloakify/keycloak-admin-ui

Version:
10 lines 699 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { Trans, useTranslation } from "react-i18next"; import { TextControl } from "../../ui-shared"; import { FormattedLink } from "../../components/external-link/FormattedLink"; export const HelpLinkTextInput = ({ fieldName, url, }) => { const { t } = useTranslation(); const name = fieldName.substring(fieldName.indexOf(".") + 1); return (_jsx(TextControl, { name: fieldName, label: t(name), labelIcon: _jsxs(Trans, { i18nKey: `${name}Help`, children: ["Default value prevents pages from being included", _jsx(FormattedLink, { href: url, title: t("learnMore") })] }) })); }; //# sourceMappingURL=HelpLinkTextInput.js.map