Pagination Component in React
Build a fully reusable controlled pagination component that accepts totalItems/itemsPerPage/currentPage as props and emits onPageChange callback. Renders page number buttons with prev/next controls. Disable Prev on first page and Next on last page. SDE2: Add ellipsis for large page counts (e.g. 1 2 ... 7 8 9 ... 20).