UNPKG

@asyncapi/react-component

Version:

A React component for AsyncAPI specification.

13 lines 698 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Href = void 0; var react_1 = __importDefault(require("react")); var Href = function (_a) { var href = _a.href, title = _a.title, className = _a.className, children = _a.children; return (react_1.default.createElement("a", { href: href, title: title ? "".concat(title, " (Opens in new window)") : 'Opens in new window', className: className, target: "_blank", rel: "nofollow noopener noreferrer" }, children)); }; exports.Href = Href; //# sourceMappingURL=Href.js.map