'use client';

import LoadingPage from '@/fsd/pages/Loading';
import MainPage from '@/fsd/pages/MainPage';
import { useInitData } from '@tma.js/sdk-react';

export default function Home() {
	const initData = useInitData(true);
	

	return (
		<>
			{initData?.user?.id !== undefined ? (
				<MainPage id={initData?.user?.id} />
			) : (
				<LoadingPage />
			)}
		</>
	);
}
