"use client"; import Link from "next/link"; import { usePathname, useSearchParams } from "next/navigation"; import { BsChevronLeft, BsChevronRight } from "react-icons/bs"; export default function PaginationButtons() { const pathname = usePathname(); const searchParams = useSearchParams(); const searchTerm = searchParams.get("searchTerm"); const startIndex = +searchParams.get("start") || 1; return (
{startIndex >= 10 && (

Previous

)} {startIndex <= 90 && (

Next

)}
); }