qwen-code/packages/cli/src/ui/components/AboutBox.tsx

79 lines
1.5 KiB
TypeScript
Raw Normal View History

2025-05-23 10:34:15 -07:00
/**
* @license
* Copyright 2025 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import React from 'react';
import { Box, Text } from 'ink';
import { Colors } from '../colors.js';
interface AboutBoxProps {
cliVersion: string;
osVersion: string;
sandboxEnv: string;
modelVersion: string;
}
export const AboutBox: React.FC<AboutBoxProps> = ({
cliVersion,
osVersion,
sandboxEnv,
modelVersion,
}) => (
<Box
borderStyle="round"
borderColor={Colors.SubtleComment}
flexDirection="column"
padding={1}
marginY={1}
width="100%"
>
<Box marginBottom={1}>
<Text bold color={Colors.AccentPurple}>
About Gemini CLI
</Text>
</Box>
<Box flexDirection="row">
<Box width="35%">
2025-05-23 14:54:54 -07:00
<Text bold color={Colors.LightBlue}>
CLI Version
</Text>
2025-05-23 10:34:15 -07:00
</Box>
<Box>
<Text>{cliVersion}</Text>
</Box>
</Box>
<Box flexDirection="row">
<Box width="35%">
2025-05-23 14:54:54 -07:00
<Text bold color={Colors.LightBlue}>
Model
</Text>
2025-05-23 10:34:15 -07:00
</Box>
<Box>
<Text>{modelVersion}</Text>
</Box>
</Box>
<Box flexDirection="row">
<Box width="35%">
2025-05-23 14:54:54 -07:00
<Text bold color={Colors.LightBlue}>
Sandbox
</Text>
2025-05-23 10:34:15 -07:00
</Box>
<Box>
<Text>{sandboxEnv}</Text>
</Box>
</Box>
<Box flexDirection="row">
<Box width="35%">
2025-05-23 14:54:54 -07:00
<Text bold color={Colors.LightBlue}>
OS
</Text>
2025-05-23 10:34:15 -07:00
</Box>
<Box>
<Text>{osVersion}</Text>
</Box>
</Box>
</Box>
);