synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
19 lines (18 loc) • 682 B
JavaScript
import { jsxs as o, jsx as r } from "react/jsx-runtime";
import { Alert as l } from "@mui/material";
import { getFriendlyPropertyName as s } from "../../SchemaDrivenAnnotationEditor/AnnotationEditorUtils.js";
function c(t) {
const { errors: i } = t;
return /* @__PURE__ */ o(l, { severity: "error", sx: { my: 2 }, children: [
/* @__PURE__ */ r("b", { children: "Validation errors found:" }),
/* @__PURE__ */ r("ul", { children: i.map((e, n) => /* @__PURE__ */ o("li", { children: [
/* @__PURE__ */ r("b", { children: `${s(e)}: ` }),
" ",
`${e.message}`
] }, n)) })
] });
}
export {
c as default
};
//# sourceMappingURL=ErrorListTemplate.js.map