mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-21 09:17:53 +00:00
feat(cli): Allow custom title in CLI header (#706)
This commit is contained in:
@@ -10,15 +10,19 @@ import Gradient from 'ink-gradient';
|
||||
import BigText from 'ink-big-text';
|
||||
import { Colors } from '../colors.js';
|
||||
|
||||
export const Header: React.FC = () => (
|
||||
interface HeaderProps {
|
||||
title?: string;
|
||||
}
|
||||
|
||||
export const Header: React.FC<HeaderProps> = ({ title = 'GEMINI' }) => (
|
||||
<>
|
||||
<Box alignItems="flex-start">
|
||||
{Colors.GradientColors ? (
|
||||
<Gradient colors={Colors.GradientColors}>
|
||||
<BigText text="GEMINI" letterSpacing={0} space={false} />
|
||||
<BigText text={title} letterSpacing={0} space={false} />
|
||||
</Gradient>
|
||||
) : (
|
||||
<BigText text="GEMINI" letterSpacing={0} space={false} />
|
||||
<BigText text={title} letterSpacing={0} space={false} />
|
||||
)}
|
||||
</Box>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user