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