import type { LocaleProps } from "@repo/i18n/config" import { Button } from "@repo/ui/design/Button" import { Link } from "@repo/ui/design/Link" import { Typography } from "@repo/ui/design/Typography" import { MainLayout } from "@repo/ui/MainLayout" import { WikipediaClient } from "@repo/wikipedia-game-solver/WikipediaClient" import { useTranslations } from "next-intl" import { unstable_setRequestLocale } from "next-intl/server" import Image from "next/image" import { FaRocket } from "react-icons/fa6" import WikipediaLogo from "#public/images/Wikipedia-Logo.png" interface HomePageProps extends LocaleProps {} const HomePage: React.FC = (props) => { const { params } = props // Enable static rendering unstable_setRequestLocale(params.locale) const t = useTranslations() return (
{t("home.title")} {t.rich("home.description", { wikipedia: (children) => { return ( {children} ) }, })}
Wikipedia
) } export default HomePage