UNPKG

@asyncapi/react-component

Version:

A React component for AsyncAPI specification.

14 lines 1.19 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); var react_1 = __importDefault(require("react")); function XExtension(_a) { var propertyValue = _a.propertyValue; return (react_1.default.createElement("a", { title: "https://x.com/".concat(propertyValue), style: { display: 'inline-block' }, href: "https://x.com/".concat(propertyValue), rel: "noopener noreferrer", target: "_blank" }, react_1.default.createElement("svg", { style: { cursor: 'pointer' }, width: "15px", height: "15px", viewBox: "0 0 1200 1227", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, react_1.default.createElement("path", { d: "M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z", fill: "black" })))); } exports.default = XExtension; //# sourceMappingURL=XExtension.js.map