import { jsx as _jsx } from "react/jsx-runtime";
import { KeyboardShortcutHint } from "./design/KeyboardShortcutHint.js";
export function ConfigurableShortcutHint(props) {
    return (_jsx(KeyboardShortcutHint, { shortcut: shortcutDisplay(props.fallback), action: props.description, parens: props.parens, bold: props.bold }));
}
export function shortcutDisplay(fallback) {
    return fallback
        .split("+")
        .map((part) => {
        const normalized = part.trim();
        if (normalized.length <= 1)
            return normalized.toUpperCase();
        return normalized[0]?.toUpperCase() + normalized.slice(1).toLowerCase();
    })
        .join("+");
}
