summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/components/Footer.tsx
blob: 35ed69105ec429e9fb24a701aa32390fa9b1f885 (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
30
31
32
33
/**
 * @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 FooterProps {
  queryLength: number;
  debugMode: boolean;
  debugMessage: string;
}

export const Footer: React.FC<FooterProps> = ({
  queryLength,
  debugMode,
  debugMessage,
}) => (
  <Box marginTop={1} justifyContent="space-between">
    <Box minWidth={15}>
      <Text color={Colors.SubtleComment}>
        {queryLength === 0 ? '? for shortcuts' : ''}
        {debugMode && (
          <Text color="red"> {debugMessage || 'Running in debug mode.'}</Text>
        )}
      </Text>
    </Box>
    <Text color={Colors.AccentBlue}>Gemini</Text>
  </Box>
);