({ children }: WithChildren)
| 19 | }; |
| 20 | |
| 21 | export 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 | |
| 45 | type PageTitleProps = { |
| 46 | title: string; |
nothing calls this directly
no test coverage detected
searching dependent graphs…