import Link from "next/link"; import { PagedCollection } from "../../types/collection"; interface Props { collection: PagedCollection; } const Pagination = ({ collection }: Props) => { const view = collection && collection['{{{hydraPrefix}}}view']; if (!view) return null; const { '{{{hydraPrefix}}}first': first, '{{{hydraPrefix}}}previous': previous, '{{{hydraPrefix}}}next': next, '{{{hydraPrefix}}}last': last } = view; return ( ); }; export default Pagination;