import type { FC, ReactElement } from "react"; import type { IComponentBaseProps } from "#package/types"; import type { IHTMLComment } from "./config/types"; import { getSanitizedHTML } from "../../utils/getSanitizedHTML"; /** * Комментарий, выводимый в HTML-разметку * @returns {ReactElement} */ const HTMLComment: FC = ({ extraAttrs = {}, text = "", }): ReactElement => { const comment = ``; const callback = (template: HTMLTemplateElement) => { if (template) { template.setAttribute("data-comment", text); template.innerHTML = ""; } }; return (