UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

16 lines (15 loc) 678 B
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