({ direction }: { direction: "left" | "right" })
| 12 | } |
| 13 | |
| 14 | function ArrowIcon({ direction }: { direction: "left" | "right" }) { |
| 15 | const path = |
| 16 | direction === "left" |
| 17 | ? "M15 5l-7 7 7 7M8 12h12" |
| 18 | : "M9 5l7 7-7 7M16 12H4"; |
| 19 | |
| 20 | return ( |
| 21 | <svg |
| 22 | aria-hidden="true" |
| 23 | className="h-5 w-5" |
| 24 | fill="none" |
| 25 | stroke="currentColor" |
| 26 | strokeLinecap="round" |
| 27 | strokeLinejoin="round" |
| 28 | strokeWidth="2" |
| 29 | viewBox="0 0 24 24" |
| 30 | > |
| 31 | <path d={path} /> |
| 32 | </svg> |
| 33 | ); |
| 34 | } |
| 35 | |
| 36 | function PaginationCard({ |
| 37 | href, |
nothing calls this directly
no outgoing calls
no test coverage detected