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

17 lines (16 loc) 633 B
import { jsx as r } from "react/jsx-runtime"; import d from "@mui/material/ListItem"; import l from "@mui/material/FormHelperText"; import s from "@mui/material/List"; import { errorId as u } from "@rjsf/utils"; function x(t) { const { errors: e = [], idSchema: o } = t; if (e.length === 0) return null; const i = u(o); return /* @__PURE__ */ r(s, { dense: !0, disablePadding: !0, children: e.map((m, n) => /* @__PURE__ */ r(d, { disableGutters: !0, children: /* @__PURE__ */ r(l, { id: i, sx: { color: "error.main" }, children: m }) }, n)) }); } export { x as default }; //# sourceMappingURL=FieldErrorTemplate.js.map