feat: lazy loaded tanks earch

This commit is contained in:
TrèsAbhi committed 2024-07-09 21:16:20 -05:00
1 parent 6a2631ea72
commit 2286a398cf
3 files changed
+51 -16

No files matched your search

-7
View File
@@ -1,19 +1,12 @@
'use client';
import { AdMidSectionResponsive } from '../../../components/AdMidSectionResponsive';
import PageWrapper from '../../../components/PageWrapper';
import { useAdExempt } from '../../../hooks/useAdExempt';
import * as TankFilters from '../../../stores/tankFilters';
import { TankSearch } from './components/TankSearch';
export default function Page() {
const exempt = useAdExempt();
return (
<TankFilters.Provider>
<PageWrapper color="purple" size={1028}>
<TankSearch />
{!exempt && <AdMidSectionResponsive />}
</PageWrapper>
</TankFilters.Provider>
);