mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-21 02:24:09 -07:00
40e11e053c
- Also updated ci.yml to ensure that linting failures will break the build. Fully fixes https://b.corp.google.com/issues/411384603
25 lines
506 B
TypeScript
25 lines
506 B
TypeScript
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>
|
||
);
|
||
};
|