import styles from './Paginator.module.scss';
import { Pagination } from '../../../lib/types/pagination.interface';
import conditionalClass from '../../../lib/utils/conditional-class';
export const Paginator = ({
pagination,
setPage,
}: {
pagination: Pagination;
setPage: (page: number) => void;
}) => {
// TODO: smarter page numbers
return (
{Array.from({ length: pagination.pageCount }, (_, i) => i + 1).map(
(pageNum) => (
)
)}
);
};