import { router } from '@inertiajs/react' import { HiOutlineChevronLeft, HiOutlineChevronRight } from 'react-icons/hi' import qs from 'qs' const PageLink = ({ active, label, url, params }) => { const className = active ? 'z-10 px-3 py-2 leading-tight text-blue-600 border border-blue-300 bg-blue-50 hover:bg-blue-100 hover:text-blue-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white' : 'px-3 py-2 leading-tight text-gray-500 bg-white border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white' const onClick = () => { router.get( `${url}&${qs.stringify(params)}`, {}, { replace: true, preserveState: true, } ) } if (label === '« Previous') { return (