Files
gemini-cli/packages/cli/src/ui/components/Footer.tsx
T

34 lines
758 B
TypeScript
Raw Normal View History

/**
* @license
* Copyright 2025 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
2025-04-15 21:41:08 -07:00
import React from 'react';
import { Box, Text } from 'ink';
2025-04-19 12:38:09 -04:00
import { Colors } from '../colors.js';
2025-04-15 21:41:08 -07:00
interface FooterProps {
2025-04-17 18:06:21 -04:00
queryLength: number;
2025-04-20 20:20:40 +01:00
debugMode: boolean;
debugMessage: string;
2025-04-15 21:41:08 -07:00
}
2025-04-20 20:20:40 +01:00
export const Footer: React.FC<FooterProps> = ({
queryLength,
debugMode,
debugMessage,
}) => (
2025-04-18 18:08:43 -04:00
<Box marginTop={1} justifyContent="space-between">
<Box minWidth={15}>
2025-04-19 12:38:09 -04:00
<Text color={Colors.SubtleComment}>
{queryLength === 0 ? '? for shortcuts' : ''}
2025-04-20 20:20:40 +01:00
{debugMode && (
<Text color="red"> {debugMessage || 'Running in debug mode.'}</Text>
)}
2025-04-19 12:38:09 -04:00
</Text>
2025-04-17 18:06:21 -04:00
</Box>
2025-04-19 12:38:09 -04:00
<Text color={Colors.AccentBlue}>Gemini</Text>
2025-04-18 18:08:43 -04:00
</Box>
);