synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
13 lines (12 loc) • 446 B
JavaScript
import { jsx as r } from "react/jsx-runtime";
import s from "../IconSvg/IconSvg.js";
const i = /^(.+?\.)?github\.com$/, m = /^(.+?\.)?githubusercontent\.com$/, h = (o) => {
const { url: e } = o;
let t = "link";
const c = new URL(e), { hostname: n } = c;
return (n.match(i) || n.match(m)) && (t = "github"), /* @__PURE__ */ r(s, { icon: t });
};
export {
h as ProvenanceExternalIcon
};
//# sourceMappingURL=ProvenanceExternalIcon.js.map