synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
48 lines (47 loc) • 1.21 kB
JavaScript
import { jsxs as p, jsx as t } from "react/jsx-runtime";
import { GridLegacy as e, Box as c } from "@mui/material";
import { getUiOptions as u, getTemplate as f } from "@rjsf/utils";
function g(r) {
const { children: i, hasToolbar: s, uiSchema: a, registry: o, buttonsProps: n } = r, l = u(a), m = f("ArrayFieldItemButtonsTemplate", o, l);
return /* @__PURE__ */ p(
e,
{
container: !0,
className: "rjsf-array-item",
sx: {
gap: 2,
justifyContent: "space-between"
},
children: [
/* @__PURE__ */ t(e, { item: !0, xs: !0, children: /* @__PURE__ */ t(
c,
{
sx: {
mb: 2
},
children: i
}
) }),
s && /* @__PURE__ */ t(
e,
{
item: !0,
sx: {
display: "flex",
flexDirection: "row",
gap: 1,
justifyContent: "flex-start",
alignSelf: "start",
my: 1
},
children: /* @__PURE__ */ t(m, { ...n })
}
)
]
}
);
}
export {
g as default
};
//# sourceMappingURL=ArrayFieldItemTemplate.js.map