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