UNPKG

json-joy

Version:

Collection of libraries for building collaborative editing apps.

13 lines (12 loc) 596 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FormattingNew = void 0; const tslib_1 = require("tslib"); // biome-ignore lint: lint/style/useImportType const React = tslib_1.__importStar(require("react")); const FormattingNewGeneric_1 = require("./FormattingNewGeneric"); const FormattingNew = (props) => { const Edit = props.formatting.behavior.data().Edit; return Edit ? React.createElement(Edit, { isNew: true, ...props }) : React.createElement(FormattingNewGeneric_1.FormattingNewGeneric, { ...props }); }; exports.FormattingNew = FormattingNew;