MCPcopy Create free account
hub / github.com/triggerdotdev/trigger.dev / NavBar

Function NavBar

apps/webapp/app/components/primitives/PageHeader.tsx:21–43  ·  view source on GitHub ↗
({ children }: WithChildren)

Source from the content-addressed store, hash-verified

19};
20
21export function NavBar({ children }: WithChildren) {
22 const organization = useOptionalOrganization();
23 const showUpgradePrompt = useShowUpgradePrompt(organization);
24 const navigation = useNavigation();
25 const isLoading = navigation.state === "loading" || navigation.state === "submitting";
26 const project = useOptionalProject();
27
28 return (
29 <div>
30 <div className="grid h-10 w-full grid-rows-[auto_1px] bg-background-bright">
31 <div className="flex w-full items-center justify-between pl-3 pr-1">{children}</div>
32 <LoadingBarDivider isLoading={isLoading} />
33 </div>
34 {showUpgradePrompt.shouldShow && organization && (
35 <UpgradePrompt
36 runsEnabled={showUpgradePrompt.runsEnabled}
37 runCountCap={showUpgradePrompt.runCountCap}
38 planPath={plansPath(organization)}
39 />
40 )}
41 </div>
42 );
43}
44
45type PageTitleProps = {
46 title: string;

Callers

nothing calls this directly

Calls 4

useOptionalOrganizationFunction · 0.90
useShowUpgradePromptFunction · 0.90
useOptionalProjectFunction · 0.90
plansPathFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…