mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-08-04 14:11:11 -07:00
88638c14f7
Co-authored-by: Jacob Richman <jacob314@gmail.com>
28 lines
597 B
TypeScript
28 lines
597 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2025 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import type React from 'react';
|
|
import { Box, Text } from 'ink';
|
|
import { useUIState } from '../contexts/UIStateContext.js';
|
|
import { theme } from '../semantic-colors.js';
|
|
|
|
export const CopyModeWarning: React.FC = () => {
|
|
const { copyModeEnabled } = useUIState();
|
|
|
|
if (!copyModeEnabled) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<Box>
|
|
<Text color={theme.status.warning}>
|
|
In Copy Mode. Use Page Up/Down to scroll. Press Ctrl+S or any other key
|
|
to exit.
|
|
</Text>
|
|
</Box>
|
|
);
|
|
};
|