Pagination component

This commit is contained in:
Brad Traversy
2024-07-15 12:36:36 -04:00
parent 3b9309e64c
commit fada26f8a3
3 changed files with 46 additions and 40 deletions
+6
View File
@@ -1,5 +1,6 @@
import PropertyCard from '@/components/PropertyCard';
import PropertySearchForm from '@/components/PropertySearchForm';
import Pagination from '@/components/Pagination';
import Property from '@/models/Property';
import connectDB from '@/config/database';
@@ -29,6 +30,11 @@ const PropertiesPage = async ({ searchParams: { pageSize = 3, page = 1 } }) => {
))}
</div>
)}
<Pagination
page={parseInt(page)}
pageSize={parseInt(pageSize)}
totalItems={total}
/>
</div>
</section>
</>