mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-05 02:40:55 -07:00
31 lines
595 B
TypeScript
31 lines
595 B
TypeScript
/**
|
||
* @license
|
||
* Copyright 2025 Google LLC
|
||
* SPDX-License-Identifier: Apache-2.0
|
||
*/
|
||
|
||
import React from 'react';
|
||
import { Text, Box } from 'ink';
|
||
|
||
interface InfoMessageProps {
|
||
text: string;
|
||
}
|
||
|
||
export const InfoMessage: React.FC<InfoMessageProps> = ({ text }) => {
|
||
const prefix = 'ℹ ';
|
||
const prefixWidth = prefix.length;
|
||
|
||
return (
|
||
<Box flexDirection="row">
|
||
<Box width={prefixWidth}>
|
||
<Text color="yellow">{prefix}</Text>
|
||
</Box>
|
||
<Box flexGrow={1}>
|
||
<Text wrap="wrap" color="yellow">
|
||
{text}
|
||
</Text>
|
||
</Box>
|
||
</Box>
|
||
);
|
||
};
|