summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/components/Header.tsx
blob: 2b9713951bd02459e768658479eea60da5bd863b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/**
 * @license
 * Copyright 2025 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */

import React from 'react';
import { Box } from 'ink';
import Gradient from 'ink-gradient';
import BigText from 'ink-big-text';
import { Colors } from '../colors.js';

interface HeaderProps {
  title?: string;
}

export const Header: React.FC<HeaderProps> = ({ title = 'GEMINI' }) => (
  <>
    <Box alignItems="flex-start">
      {Colors.GradientColors ? (
        <Gradient colors={Colors.GradientColors}>
          <BigText text={title} letterSpacing={0} space={false} />
        </Gradient>
      ) : (
        <BigText text={title} letterSpacing={0} space={false} />
      )}
    </Box>
  </>
);