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

import { baseUrls } from "./_constants"

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

export async function LanguageSwitcherRoute({ params }: PageArgs<LangParams>) {
  return (
    <Header
      lang={params.lang}
      languageSwitcher={<LanguageSwitcher urls={baseUrls} lang={params.lang} />}
    />
  )
}
