import type { ReactElement, PropsWithChildren } from "react"; import { useMemo } from "react"; import type { IAppContext } from "#package/types"; import { constants } from "../../constants"; const GlobalCtx = constants.globalCtx; /** * Корневой компонент приложения, используемый для формирования контекста @returns {ReactElement} */ const RenderContext = ({ children, isSSR, mode, }: PropsWithChildren): ReactElement => { const value = useMemo(() => ({ isSSR, mode }), [ isSSR, mode ]); return ( {children} ); }; export { RenderContext, };