synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
23 lines (22 loc) • 656 B
JavaScript
import { jsx as t, Fragment as r } from "react/jsx-runtime";
import o from "../../../../../synapse-queries/entity/useEntityBundle.js";
import { Skeleton as m } from "@mui/material";
import { EntityLink as a } from "../../../../EntityLink.js";
function u(i) {
const { data: n, isLoading: e } = o(
i.row.original.entityId,
i.row.original.versionNumber
);
return e ? /* @__PURE__ */ t(m, { width: 100 }) : n ? /* @__PURE__ */ t(
a,
{
className: "EntityNameWithIconRenderer",
entity: n.entity,
link: !1
}
) : /* @__PURE__ */ t(r, {});
}
export {
u as EntityNameCell
};
//# sourceMappingURL=EntityNameCell.js.map