import Desktop from "./Desktop"
import Mobile from "./Mobile"

import { LangParams } from "@/types/params"
import { LanguageSwitcherData } from "@/types/requests/languageSwitcher"

type LanguageSwitcherProps = LangParams & { urls: LanguageSwitcherData }

export default function LanguageSwitcher({
  urls,
  lang,
}: LanguageSwitcherProps) {
  return (
    <>
      <Desktop currentLanguage={lang} urls={urls} />
      <Mobile currentLanguage={lang} urls={urls} />
    </>
  )
}
