import { TextAttributes } from "@opentui/core" import { useTheme } from "@tui/context/theme" import { useDialog } from "./dialog" import { useKeyboard } from "@opentui/solid" import { useKeybind } from "@tui/context/keybind" export function DialogHelp() { const dialog = useDialog() const { theme } = useTheme() const keybind = useKeybind() useKeyboard((evt) => { if (evt.name === "return" || evt.name === "escape") { dialog.clear() } }) return ( Help esc/enter Press {keybind.print("command_list")} to see all available actions and commands in any context. dialog.clear()}> ok ) }