From c7d2457455fad7342dd59467cc24aa7ea16393a6 Mon Sep 17 00:00:00 2001 From: Githmi Hashara Date: Sun, 22 Sep 2024 19:30:45 +0530 Subject: [PATCH] Refactor Home component to remove commented out code and unused imports --- app/page.tsx | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/app/page.tsx b/app/page.tsx index 3f44d0b..407aa60 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,3 +1,50 @@ + +// import { TbCoinRupee } from 'react-icons/tb'; +// import Container from './components/Container'; +// import EmptyState from './components/EmptyState'; +// import getListings, { IListingsParams } from './actions/getListings'; +// import ListingCard from './components/listings/ListingCard'; +// import getCurrentUser from './actions/getCurrentUser'; + +// interface HomeProps { +// searchParams: IListingsParams +// } + + +// const Home = async ({searchParams}: HomeProps)=> { +// const listings = await getListings(searchParams) ; +// const currentUser = await getCurrentUser(); + + +// if(listings.length === 0) { +// return ( +// +// ) +// } + + + +// return ( + +// +//
+// {listings.map((listing) => ( +// +// ))} +//
+//
+ +// ) +// } + +// export default Home; + + + import { TbCoinRupee } from 'react-icons/tb'; import Container from './components/Container'; import EmptyState from './components/EmptyState';