import { serverClient } from "@/lib/trpc/server"

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

export default async function MyPagesMobileDropdownPage() {
  // TODO: Dirty way to get lang value. Figure out a proper way.
  const data = await serverClient().contentstack.languageSwitcher.get()
  if (!data) {
    return null
  }
  return <MyPagesMobileDropdown lang={data.lang} />
}
