claude-code-best/packages/@ant/ink/src/theme/ConfigurableShortcutHint.tsx
claude-code-best f8480358ca style: 格式化 packages/@ant/ 下所有文件以通过 biome ci
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-01 21:55:51 +08:00

24 lines
728 B
TypeScript

/**
* Simplified ConfigurableShortcutHint for the standalone @anthropic/ink package.
*
* The full version reads user-configured keybindings via useShortcutDisplay.
* This stub just renders the fallback shortcut — sufficient for the package's
* internal theme components.
*/
import React from 'react';
import { KeyboardShortcutHint } from './KeyboardShortcutHint.js';
type Props = {
action: string;
context: string;
fallback: string;
description: string;
parens?: boolean;
bold?: boolean;
};
export function ConfigurableShortcutHint({ fallback, description, parens, bold }: Props): React.ReactNode {
return <KeyboardShortcutHint shortcut={fallback} action={description} parens={parens} bold={bold} />;
}