import * as React from 'react'
import type {
KeybindingAction,
KeybindingContextName,
} from '../keybindings/types.js'
import { useShortcutDisplay } from '../keybindings/useShortcutDisplay.js'
import { KeyboardShortcutHint } from './design-system/KeyboardShortcutHint.js'
type Props = {
/** The keybinding action (e.g., 'app:toggleTranscript') */
action: KeybindingAction
/** The keybinding context (e.g., 'Global') */
context: KeybindingContextName
/** Default shortcut if keybinding not configured */
fallback: string
/** The action description text (e.g., 'expand') */
description: string
/** Whether to wrap in parentheses */
parens?: boolean
/** Whether to show in bold */
bold?: boolean
}
/**
* KeyboardShortcutHint that displays the user-configured shortcut.
* Falls back to default if keybinding context is not available.
*
* @example
*
*/
export function ConfigurableShortcutHint({
action,
context,
fallback,
description,
parens,
bold,
}: Props): React.ReactNode {
const shortcut = useShortcutDisplay(action, context, fallback)
return (
)
}