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

13 lines (12 loc) 446 B
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