MCPcopy
hub / github.com/triggerdotdev/trigger.dev / NextButton

Function NextButton

apps/webapp/app/components/ListPagination.tsx:22–41  ·  view source on GitHub ↗
({ cursor }: { cursor?: string })

Source from the content-addressed store, hash-verified

20}
21
22function 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
43function PreviousButton({ cursor }: { cursor?: string }) {
44 const path = useCursorPath(cursor, "backward");

Callers

nothing calls this directly

Calls 2

cnFunction · 0.90
useCursorPathFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…