create a page to display student records using ShadCN UI pagination components. Try use the best practise in next js when doing pagination
I'll create a student records page with pagination using ShadCN UI components and Next.js best practices.
This implementation follows Next.js best practices for pagination:
app/students/page.tsx
) reads the current page from URL search parameters and fetches only the data needed for that page 1.To use this in your project, you would replace the mock data service with your actual data fetching logic, whether that's from a database, API, or other source.