MCPcopy Create free account
hub / github.com/code-with-antonio/nightcode / StatusBar

Function StatusBar

packages/cli/src/components/status-bar.tsx:6–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import { Mode } from "@nightcode/shared";
5
6export function StatusBar() {
7 const { mode, model } = usePromptConfig();
8 const { colors } = useTheme();
9
10 return (
11 <box flexDirection="row" gap={1}>
12
13 <text fg={mode === Mode.PLAN ? colors.planMode : colors.primary}>
14 {mode === Mode.PLAN ? "Plan" : "Build"}
15 </text>
16
17 <text attributes={TextAttributes.DIM} fg={colors.dimSeparator}>
18
19 </text>
20 <text>{model}</text>
21 </box>
22 );
23};

Callers

nothing calls this directly

Calls 2

usePromptConfigFunction · 0.90
useThemeFunction · 0.90

Tested by

no test coverage detected