synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
15 lines (14 loc) • 559 B
JavaScript
import { jsx as o } from "react/jsx-runtime";
import { parseSynId as s } from "../../../utils/functions/RegularExpressions.js";
import a from "../../FilePreview/EntityPreview.js";
function f(e) {
const r = s(e.entityId);
if (r == null)
throw new Error(`${e.entityId} is not a valid Synapse ID`);
const t = parseInt(e.versionNumber ?? ""), n = r.targetId, i = Number.isNaN(t) ? r.targetVersionNumber : t;
return /* @__PURE__ */ o(a, { entityId: n, versionNumber: i });
}
export {
f as default
};
//# sourceMappingURL=MarkdownEntityPreview.js.map