import { logout } from "@/constants/routes/handleAuth"
import { serverClient } from "@/lib/trpc/server"

import MyPagesMobileDropdown from "@/components/Current/Header/MyPagesMobileDropdown"

export default async function MyPagesMobileDropdownPage() {
  // TODO: Figure out how to pass down props at the paralell route level.
  // - Possibly by parsing [...paths]

  const navigation = await serverClient().contentstack.myPages.navigation.get()
  if (!navigation) return null
  return <MyPagesMobileDropdown navigation={navigation} lang={null} />
}
