import HomePage from '../components/HomePage';
import { isValidLanguage } from '../lib/i18n/config';

export default function Page({ searchParams }: { searchParams?: { lang?: string } }) {
    // 校验 lang 参数
    const lang = searchParams?.lang;
    const initialLanguage = lang && isValidLanguage(lang) ? lang : undefined;
    return <HomePage initialLanguage={initialLanguage} data-oid="8gwj:9s" />;
}
