'use client';

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

const Search = () => {
	const initData = useInitData(true);

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

export default Search;
