UNPKG

json-joy

Version:

Collection of libraries for building collaborative editing apps.

8 lines (7 loc) 373 B
// biome-ignore lint: lint/style/useImportType import * as React from 'react'; import { FormattingNewGeneric } from './FormattingNewGeneric'; export const FormattingNew = (props) => { const Edit = props.formatting.behavior.data().Edit; return Edit ? React.createElement(Edit, { isNew: true, ...props }) : React.createElement(FormattingNewGeneric, { ...props }); };