import * as React from 'react';
import { RenderInline } from './inline/RenderInline';
import { RenderPeritext } from './RenderPeritext';
import { text } from '../minimal/text';
import { RenderBlock } from './block/RenderBlock';
import { RenderCaret } from './cursor/caret/RenderCaret';
import { RenderFocus } from './cursor/focus/RenderFocus';
const h = React.createElement;
export class ToolbarPlugin {
    opts;
    constructor(opts = {}) {
        this.opts = opts;
    }
    text = text;
    inline = (props, children) => h(RenderInline, props, children);
    block = (props, children) => h(RenderBlock, props, children);
    peritext = (children, surface) => h(RenderPeritext, { children, surface, opts: this.opts });
    caret = (props, children) => h(RenderCaret, props, children);
    focus = (props, children) => h(RenderFocus, props, children);
}
//# sourceMappingURL=ToolbarPlugin.js.map