2025-11-11 07:50:11 -08:00
|
|
|
/**
|
|
|
|
|
* @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 (
|
2026-03-24 16:16:48 -07:00
|
|
|
<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>
|
|
|
|
|
)}
|
2025-11-11 07:50:11 -08:00
|
|
|
</Box>
|
|
|
|
|
);
|
|
|
|
|
};
|