mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-15 16:41:11 -07:00
25 lines
661 B
TypeScript
25 lines
661 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2025 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import type React from 'react';
|
|
import { Text } from 'ink';
|
|
import { theme } from '../semantic-colors.js';
|
|
import { useUIState } from '../contexts/UIStateContext.js';
|
|
|
|
export const ShortcutsHint: React.FC = () => {
|
|
const { cleanUiDetailsVisible, shortcutsHelpVisible } = useUIState();
|
|
|
|
if (!cleanUiDetailsVisible) {
|
|
return <Text color={theme.text.secondary}> press tab twice for more </Text>;
|
|
}
|
|
|
|
const highlightColor = shortcutsHelpVisible
|
|
? theme.text.accent
|
|
: theme.text.secondary;
|
|
|
|
return <Text color={highlightColor}> ? for shortcuts </Text>;
|
|
};
|