import { getServerSession } from "next-auth";
import { redirect } from "next/navigation";
import { authOptions } from "@/lib/auth";
import OdooContent from "./content";

export const dynamic = "force-dynamic";

export default async function DashboardOdooPage() {
  const session = await getServerSession(authOptions);
  if (!session?.user?.id) redirect("/login");
  return <OdooContent />;
}
