mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-23 02:02:31 -07:00
bbdd8457df
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
26 lines
605 B
TypeScript
26 lines
605 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();
|
|
|
|
return (
|
|
<Box height={1}>
|
|
{copyModeEnabled && (
|
|
<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>
|
|
);
|
|
};
|