This repository has been archived on 2026-10-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
dns2019/src/components/Pagination.js
T
2019-01-30 14:56:02 +01:00

24 lines
519 B
JavaScript

import React from 'react'
import { Link } from 'gatsby'
const Pagination = ({ pageContext, pathPrefix }) => {
const { previousPagePath, nextPagePath } = pageContext
return (
<nav className="pagination" role="navigation">
{previousPagePath && (
<Link to={previousPagePath} rel="prev">
&larr; Forrige
</Link>
)}
{nextPagePath && (
<Link to={nextPagePath} rel="next">
Neste &rarr;
</Link>
)}
</nav>
)
}
export default Pagination