"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useRichTextItem = void 0;
const RichTextConverter_1 = require("../../utils/RichTextConverter/RichTextConverter");
const useCntrlContext_1 = require("../../provider/useCntrlContext");
const richTextConverter = new RichTextConverter_1.RichTextConverter();
const useRichTextItem = (item) => {
    const { layouts } = (0, useCntrlContext_1.useCntrlContext)();
    const [content, styles] = richTextConverter.toHtml(item, layouts);
    return [content, styles];
};
exports.useRichTextItem = useRichTextItem;
