mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-12 22:31:12 -07: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