import * as React from 'react';
import { usePeritext } from '../context';
import { Caret } from './Caret';
export const FocusView = (props) => {
    const { plugins } = usePeritext();
    let children = React.createElement(Caret, null);
    for (const plugin of plugins)
        children = plugin.focus?.(props, children) ?? children;
    return children;
};
//# sourceMappingURL=FocusView.js.map