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

12 lines (11 loc) 579 B
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