2026-02-06 11:33:39 -08:00
|
|
|
/**
|
|
|
|
|
* @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 = () => {
|
2026-02-12 14:25:24 -05:00
|
|
|
const { cleanUiDetailsVisible, shortcutsHelpVisible } = useUIState();
|
|
|
|
|
|
|
|
|
|
if (!cleanUiDetailsVisible) {
|
|
|
|
|
return <Text color={theme.text.secondary}> press tab twice for more </Text>;
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-06 11:33:39 -08:00
|
|
|
const highlightColor = shortcutsHelpVisible
|
|
|
|
|
? theme.text.accent
|
|
|
|
|
: theme.text.secondary;
|
|
|
|
|
|
|
|
|
|
return <Text color={highlightColor}> ? for shortcuts </Text>;
|
|
|
|
|
};
|