import { langEnum } from "@/types/lang";

import Da from "./Da";
import De from "./De";
import En from "./En";
import Fi from "./Fi";
import No from "./No";
import Sv from "./Sv";

import type { HeaderProps } from "@/types/components/current/header";
import { LangParams } from "@/types/params";

export default function Header({ lang, pathname }: LangParams & HeaderProps) {
  switch (lang) {
    case langEnum.sv:
      return <Sv pathname={pathname} />;
    case langEnum.fi:
      return <Fi pathname={pathname} />;
    case langEnum.en:
      return <En pathname={pathname} />;
    case langEnum.da:
      return <Da pathname={pathname} />;
    case langEnum.de:
      return <De pathname={pathname} />;
    case langEnum.no:
      return <No pathname={pathname} />;
    default:
      return null;
  }
}
