import type { ReactNode } from "react"; import type { LayoutProps } from '@/core/types/common'; import { getServerSession } from "next-auth"; import { authOptions } from "@/core/lib/auth/options"; import ProfileHeader from '@/core/common/ProfileHeader'; export const dynamic = "force-dynamic"; // TODO: The shit implementation of the these pages, should be refactored and remade, // because there's no normal way to handle related states and UI. export default async function Layout(props: LayoutProps): Promise { const session = await getServerSession(authOptions); return (
{props.children}
); }