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

import Desktop from "@/components/Current/Header/LanguageSwitcher/Desktop"
import Mobile from "@/components/Current/Header/LanguageSwitcher/Mobile"

export default async function LanguageSwitcher() {
  const data = await serverClient().contentstack.languageSwitcher.get()
  return (
    <>
      <Desktop currentLanguage={data.lang} urls={data.urls} />
      <Mobile currentLanguage={data.lang} urls={data.urls} />
    </>
  )
}
