({ cursor }: { cursor?: string })
| 20 | } |
| 21 | |
| 22 | function NextButton({ cursor }: { cursor?: string }) { |
| 23 | const path = useCursorPath(cursor, "forward"); |
| 24 | |
| 25 | return ( |
| 26 | <LinkButton |
| 27 | to={path ?? "#"} |
| 28 | variant={"minimal/small"} |
| 29 | TrailingIcon="arrow-right" |
| 30 | trailingIconClassName="text-text-dimmed" |
| 31 | className={cn( |
| 32 | "flex items-center", |
| 33 | !path && |
| 34 | "cursor-not-allowed opacity-50 group-hover:bg-transparent group-hover:text-text-dimmed" |
| 35 | )} |
| 36 | onClick={(e) => !path && e.preventDefault()} |
| 37 | > |
| 38 | Next |
| 39 | </LinkButton> |
| 40 | ); |
| 41 | } |
| 42 | |
| 43 | function PreviousButton({ cursor }: { cursor?: string }) { |
| 44 | const path = useCursorPath(cursor, "backward"); |
nothing calls this directly
no test coverage detected
searching dependent graphs…