synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
34 lines (33 loc) • 794 B
JavaScript
import { jsx as n, Fragment as e, jsxs as a } from "react/jsx-runtime";
import { Box as l } from "@mui/material";
import m from "../IconSvg/IconSvg.js";
function g({
children: r,
value: i,
iconConfig: o
}) {
const t = o?.[i];
if (!t) return /* @__PURE__ */ n(e, { children: r });
const { containerSx: s, ...c } = t;
return /* @__PURE__ */ a(e, { children: [
/* @__PURE__ */ n(
l,
{
sx: {
display: "inline-flex",
alignItems: "center",
justifyContent: "center",
verticalAlign: "middle",
marginRight: "7px",
...s
},
children: /* @__PURE__ */ n(m, { wrap: !1, ...c })
}
),
r
] });
}
export {
g as LabelMaybeWithIcon
};
//# sourceMappingURL=LabelMaybeWithIcon.js.map