import { ContentProps } from "@/validations/mutual/dashboard/props";
import { resolveWhichPageToRenderMulti } from "@/pages/resolver/resolver";
import ContentToRenderNoPage from "@/pages/mutual/noContent/page";

const PageToBeChildrendMulti: React.FC<ContentProps> = async ({ lang, translations, activePageUrl, mode }) => {
    const ApplicationToRender = await resolveWhichPageToRenderMulti({ activePageUrl })
    if (!ApplicationToRender) return <ContentToRenderNoPage lang={lang} />
    return <ApplicationToRender lang={lang} translations={translations} activePageUrl={activePageUrl} mode={mode} />
}

export default PageToBeChildrendMulti
