/**
 * @license
 * Copyright 2025 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */

import React from 'react';
import { Box, Text } from 'ink';
import Gradient from 'ink-gradient';
import { Colors } from '../colors.js';

const asciiArtLogo = `
 ██████╗ ███████╗███╗   ███╗██╗███╗   ██╗██╗
██╔════╝ ██╔════╝████╗ ████║██║████╗  ██║██║
██║  ███╗█████╗  ██╔████╔██║██║██╔██╗ ██║██║
██║   ██║██╔══╝  ██║╚██╔╝██║██║██║╚██╗██║██║
╚██████╔╝███████╗██║ ╚═╝ ██║██║██║ ╚████║██║
 ╚═════╝ ╚══════╝╚═╝     ╚═╝╚═╝╚═╝  ╚═══╝╚═╝
`;

export const Header: React.FC = () => (
  <>
    <Box marginBottom={1} alignItems="flex-start">
      {Colors.GradientColors ? (
        <Gradient colors={Colors.GradientColors}>
          <Text>{asciiArtLogo}</Text>
        </Gradient>
      ) : (
        <Text>{asciiArtLogo}</Text>
      )}
    </Box>
  </>
);
