import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { Text } from "ink";
export function formatKeyboardShortcutHint(model) {
    const body = `${model.shortcut} to ${model.action}`;
    return model.parens ? `(${body})` : body;
}
export function KeyboardShortcutHint(props) {
    if (props.parens) {
        return (_jsxs(Text, { children: ["(", _jsx(Text, { bold: props.bold, children: props.shortcut }), ` to ${props.action})`] }));
    }
    return (_jsxs(Text, { children: [_jsx(Text, { bold: props.bold, children: props.shortcut }), ` to ${props.action}`] }));
}
