9 lines
281 B
TypeScript
9 lines
281 B
TypeScript
import Navbar from "./navbar";
|
|
import { getServerSession } from "next-auth/next";
|
|
import { authOptions } from "app/api/auth/[...nextauth]/route";
|
|
|
|
export default async function Nav() {
|
|
const session = await getServerSession(authOptions);
|
|
return <Navbar session={session} />;
|
|
}
|