import * as React from 'react';
import { Char } from '../../constants';
import { usePeritext } from '../context';
import { useCaret } from './hooks';
export const Caret = () => {
    const { dom } = usePeritext();
    const ref = useCaret();
    return (React.createElement("span", { id: dom.cursor.caretId, ref: ref }, Char.ZeroLengthSpace));
};
//# sourceMappingURL=Caret.js.map