"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FocusView = void 0;
const tslib_1 = require("tslib");
const React = tslib_1.__importStar(require("react"));
const context_1 = require("../context");
const Caret_1 = require("./Caret");
const FocusView = (props) => {
    const { plugins } = (0, context_1.usePeritext)();
    let children = React.createElement(Caret_1.Caret, null);
    for (const plugin of plugins)
        children = plugin.focus?.(props, children) ?? children;
    return children;
};
exports.FocusView = FocusView;
//# sourceMappingURL=FocusView.js.map