"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Caret = void 0;
const tslib_1 = require("tslib");
const React = tslib_1.__importStar(require("react"));
const constants_1 = require("../../constants");
const context_1 = require("../context");
const hooks_1 = require("./hooks");
const Caret = () => {
    const { dom } = (0, context_1.usePeritext)();
    const ref = (0, hooks_1.useCaret)();
    return (React.createElement("span", { id: dom.cursor.caretId, ref: ref }, constants_1.Char.ZeroLengthSpace));
};
exports.Caret = Caret;
//# sourceMappingURL=Caret.js.map