import Link from 'next/link' interface Props { page: string totalPages: number currentPage: number } export default function Pagination({ page, totalPages, currentPage }: Props) { const prevPage = currentPage - 1 > 0 const nextPage = currentPage + 1 <= totalPages return (