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

19 lines (18 loc) 682 B
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