UNPKG

json-joy

Version:

Collection of libraries for building collaborative editing apps.

12 lines (11 loc) 488 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FormattingEdit = void 0; const tslib_1 = require("tslib"); // biome-ignore lint: lint/style/useImportType const React = tslib_1.__importStar(require("react")); const FormattingEdit = (props) => { const Edit = props.formatting.behavior.data().Edit; return Edit ? React.createElement(Edit, { ...props }) : React.createElement("div", null, "no editor"); }; exports.FormattingEdit = FormattingEdit;