refactor: remove unused session retrieval in AdminPage component

This commit is contained in:
Rémi 2025-01-05 01:11:52 +01:00
parent a9d4fbedcf
commit 26e9462dac

View File

@ -1,14 +1,10 @@
import { Metadata } from "next";
import { AdminHeader } from "../components/Header/admin";
import { getServerSession } from "next-auth";
import { authOptions } from "@/authOptions";
export const metadata: Metadata = {
title: "Toogether Admin",
};
export default async function AdminPage() {
const session = await getServerSession(authOptions);
return <AdminHeader />;
}