import Link from 'next/link' import { IconArrowLeft, IconArrowRight } from 'ui' const Pagination = ({ currentPage, totalCount }: { currentPage: number; totalCount: number }) => { // TODO: not sure if this is the most efficient way to do this. may need to refactor. const totalArray = Array.from({ length: totalCount }, (_, i: number) => i + 1) const pages = totalArray.filter((page: number) => { return page >= currentPage - 2 && page <= currentPage + 2 }) return ( ) } export default Pagination