mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-16 08:10:46 -07:00
20 lines
519 B
TypeScript
20 lines
519 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 { shortcutsHelpVisible } = useUIState();
|
||
|
|
const highlightColor = shortcutsHelpVisible
|
||
|
|
? theme.text.accent
|
||
|
|
: theme.text.secondary;
|
||
|
|
|
||
|
|
return <Text color={highlightColor}> ? for shortcuts </Text>;
|
||
|
|
};
|