1import Link from "next/link";
2export default function Pagination(props) {
5 href={`/${props.section}/${props.post.slug}`}
6 key={`post-${props.post.slug}`}
9 className="bg-wall-100 cursor-pointer font-semibold p-2 px-4 rounded-xl flex"
10 style={{ maxWidth: "45%" }}
12 <p className="shrink-0 pr-1">{props.previous ? "<- " : ""}</p>
13 <p className="text-wall-600 truncate">{props.post.title}</p>
14 <p className="shrink-0 pl-1">{props.next ? " ->" : ""}</p>
20Pagination.defaultProps = {
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list