mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-14 08:01:02 -07:00
26 lines
641 B
TypeScript
26 lines
641 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2025 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import type React from 'react';
|
|
import { Box, Text } from 'ink';
|
|
import { theme } from '../../semantic-colors.js';
|
|
|
|
interface UserShellMessageProps {
|
|
text: string;
|
|
}
|
|
|
|
export const UserShellMessage: React.FC<UserShellMessageProps> = ({ text }) => {
|
|
// Remove leading '!' if present, as App.tsx adds it for the processor.
|
|
const commandToDisplay = text.startsWith('!') ? text.substring(1) : text;
|
|
|
|
return (
|
|
<Box>
|
|
<Text color={theme.ui.symbol}>$ </Text>
|
|
<Text color={theme.text.primary}>{commandToDisplay}</Text>
|
|
</Box>
|
|
);
|
|
};
|