import type { ReactElement } from "react"; import ReactDom from "react-dom/server"; import type { TAppRenderModes } from "#package/types"; import { RenderContext } from "../../components/renderContext"; import { Localisation } from "../../plugins/localisation"; import { getPrettyHTML } from "../getPrettyHTML"; const { renderToStaticMarkup, renderToString } = ReactDom; const getDefaultModifier = (str = "") => { const result = str.replaceAll(/