import React from "react"; import { Text } from "ink"; import { useTerminalTheme } from "../hooks/useTerminalTheme"; export type TKeyHint = { key: string; label: string }; export function KeyHintBar(props: { hints: TKeyHint[] }) { const theme = useTerminalTheme(); return ( {props.hints.map((hint, index) => ( {index > 0 ? " " : ""} {hint.key} {hint.label} ))} ); }