synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
12 lines (11 loc) • 579 B
JavaScript
import { jsx as t } from "react/jsx-runtime";
import { Typography as o } from "@mui/material";
import p from "./FieldDescriptionTable.js";
function d(e) {
const { description: r, schema: i = {}, registry: n } = e, s = n.formContext.descriptionFormat || "string";
return i.type === "object" ? /* @__PURE__ */ t(o, { variant: "body1", sx: { my: 2 }, children: r }) : s === "string" ? /* @__PURE__ */ t(o, { variant: "body1", children: r }) : /* @__PURE__ */ t(p, { schema: i, description: r });
}
export {
d as default
};
//# sourceMappingURL=DescriptionFieldTemplate.js.map