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

34 lines (33 loc) 794 B
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