import { auth } from "@/auth"
import MyPagesSidebar from "@/components/MyPages/Sidebar"

import { LangParams } from "@/types/params"

export default async function MyPagesNavigation({ lang }: LangParams) {
  const session = await auth()

  if (!session) {
    return null
  }

  return <MyPagesSidebar lang={lang} />
}
