UNPKG

@keycloakify/keycloak-admin-ui

Version:
6 lines 533 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { ExternalLinkAltIcon } from "@patternfly/react-icons"; export const FormattedLink = ({ title, href, isInline, ...rest }) => { return (_jsxs("a", { href: href, target: "_blank", rel: "noreferrer noopener", className: isInline ? "pf-m-link pf-m-inline" : "", ...rest, children: [title ? title : href, " ", (href === null || href === void 0 ? void 0 : href.startsWith("http")) && _jsx(ExternalLinkAltIcon, {})] })); }; //# sourceMappingURL=FormattedLink.js.map