import { useEffect } from "react";
import { type Lang, useI18n } from "../../i18n";
import { Home } from "../Home";

export function LocalizedHomePage({ targetLang }: { targetLang: Lang }) {
  const { setLang } = useI18n();

  useEffect(() => {
    setLang(targetLang);
  }, [setLang, targetLang]);

  return <Home />;
}
