Renders pagination component for given current page and total pages count