"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GenericIcon = void 0;
const tslib_1 = require("tslib");
const React = tslib_1.__importStar(require("react"));
const Avatar_1 = require("nice-ui/lib/1-inline/Avatar");
const GenericIcon = ({ formatting }) => {
    const data = formatting.behavior.data();
    const id = formatting.range.start.id;
    const time = id.time + '';
    const name = data?.previewText?.(formatting) || time[time.length - 1] + time[time.length - 2] + time + '.' + id.sid;
    return React.createElement(Avatar_1.Avatar, { name: name, width: 16, height: 16 });
};
exports.GenericIcon = GenericIcon;
//# sourceMappingURL=GenericIcon.js.map