MCPcopy Create free account
hub / github.com/fontsource/fontsource / Pager

Function Pager

website/app/components/docs/Pager.tsx:12–42  ·  view source on GitHub ↗
({ pager }: PagerProps)

Source from the content-addressed store, hash-verified

10}
11
12export const Pager = ({ pager }: PagerProps) => (
13 <nav className={classes.pager} aria-label="Documentation pagination">
14 {pager.previous ? (
15 <Link to={pager.previous.url} className={classes.card} prefetch="render">
16 <IconArrowLeft size={18} stroke={1.8} aria-hidden="true" />
17 <span>
18 <small>Previous</small>
19 <strong>{pager.previous.name}</strong>
20 </span>
21 </Link>
22 ) : (
23 <span />
24 )}
25 {pager.next ? (
26 <Link
27 to={pager.next.url}
28 className={classes.card}
29 prefetch="render"
30 data-align="end"
31 >
32 <span>
33 <small>Next</small>
34 <strong>{pager.next.name}</strong>
35 </span>
36 <IconArrowRight size={18} stroke={1.8} aria-hidden="true" />
37 </Link>
38 ) : (
39 <span />
40 )}
41 </nav>
42);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected