synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
16 lines (15 loc) • 678 B
JavaScript
import { jsxs as n, Fragment as o, jsx as r } from "react/jsx-runtime";
import { useMemo as l } from "react";
import { Tooltip as m } from "@mui/material";
import { ProvenanceExternalIcon as t } from "./ProvenanceExternalIcon.js";
const h = (e) => l(
() => /* @__PURE__ */ n(o, { children: [
/* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(t, { url: e.url }) }),
/* @__PURE__ */ r(m, { title: e.name, placement: "top", enterNextDelay: 300, children: /* @__PURE__ */ r("a", { href: e.url, rel: "noopener noreferrer", children: e.name }) })
] }),
[e.name, e.url]
);
export {
h as ExternalGraphNodeLabel
};
//# sourceMappingURL=ExternalGraphNodeLabel.js.map