import Link from "next/link"; import { PagedCollection } from "../../types/collection"; interface Props { collection: PagedCollection; // eslint-disable-next-line no-unused-vars getPagePath: (path: string) => string; } const Pagination = ({ collection, getPagePath }: Props) => { const view = collection && collection["hydra:view"]; if (!view) return null; const { "hydra:first": first, "hydra:previous": previous, "hydra:next": next, "hydra:last": last, } = view; return (
); }; export default Pagination;