|
|
@@ -1,5 +1,6 @@
|
|
|
import { TextAttributes } from "@opentui/core"
|
|
|
import { useTheme } from "../context/theme"
|
|
|
+import { useDialog } from "@tui/ui/dialog"
|
|
|
import { useSync } from "@tui/context/sync"
|
|
|
import { For, Match, Switch, Show, createMemo } from "solid-js"
|
|
|
import { Installation } from "@/installation"
|
|
|
@@ -9,6 +10,7 @@ export type DialogStatusProps = {}
|
|
|
export function DialogStatus() {
|
|
|
const sync = useSync()
|
|
|
const { theme } = useTheme()
|
|
|
+ const dialog = useDialog()
|
|
|
|
|
|
const enabledFormatters = createMemo(() => sync.data.formatter.filter((f) => f.enabled))
|
|
|
|
|
|
@@ -43,7 +45,9 @@ export function DialogStatus() {
|
|
|
<text fg={theme.text} attributes={TextAttributes.BOLD}>
|
|
|
Status
|
|
|
</text>
|
|
|
- <text fg={theme.textMuted}>esc</text>
|
|
|
+ <text fg={theme.textMuted} onMouseUp={() => dialog.clear()}>
|
|
|
+ esc
|
|
|
+ </text>
|
|
|
</box>
|
|
|
<text fg={theme.textMuted}>OpenCode v{Installation.VERSION}</text>
|
|
|
<Show when={Object.keys(sync.data.mcp).length > 0} fallback={<text fg={theme.text}>No MCP Servers</text>}>
|