mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-14 16:10:59 -07:00
27 lines
545 B
TypeScript
27 lines
545 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. Press any key to exit.
|
|
</Text>
|
|
</Box>
|
|
);
|
|
};
|