"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.renderIcon = void 0;
const tslib_1 = require("tslib");
const React = tslib_1.__importStar(require("react"));
const Favicon_1 = require("../../../../../components/Favicon");
const renderIcon = ({ formatting }) => {
    const data = formatting.conf()?.view();
    if (!data || typeof data !== 'object')
        return;
    const { href } = data;
    return href ? React.createElement(Favicon_1.Favicon, { url: data.href ?? '' }) : null;
};
exports.renderIcon = renderIcon;
//# sourceMappingURL=renderIcon.js.map