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

42 lines
1.2 KiB
TypeScript
Raw Normal View History

/**
* @license
* Copyright 2026 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import type React from 'react';
2025-04-15 21:41:08 -07:00
import { Box, Text } from 'ink';
2025-09-10 10:57:07 -07:00
import { theme } from '../semantic-colors.js';
import { type Config } from '@google/gemini-cli-core';
2025-04-15 21:41:08 -07:00
2025-05-24 12:06:44 -07:00
interface TipsProps {
config: Config;
}
export const Tips: React.FC<TipsProps> = ({ config }) => {
const geminiMdFileCount = config.getGeminiMdFileCount();
2025-05-24 12:06:44 -07:00
return (
<Box flexDirection="column" marginTop={1}>
2025-09-10 10:57:07 -07:00
<Text color={theme.text.primary}>Tips for getting started:</Text>
2025-05-24 12:06:44 -07:00
{geminiMdFileCount === 0 && (
2025-09-10 10:57:07 -07:00
<Text color={theme.text.primary}>
1. Create <Text bold>GEMINI.md</Text> files to customize your
interactions
2025-05-24 12:06:44 -07:00
</Text>
)}
2025-09-10 10:57:07 -07:00
<Text color={theme.text.primary}>
{geminiMdFileCount === 0 ? '2.' : '1.'}{' '}
<Text color={theme.text.secondary}>/help</Text> for more information
</Text>
<Text color={theme.text.primary}>
{geminiMdFileCount === 0 ? '3.' : '2.'} Ask coding questions, edit code
or run commands
</Text>
<Text color={theme.text.primary}>
{geminiMdFileCount === 0 ? '4.' : '3.'} Be specific for the best results
</Text>
2025-05-24 12:06:44 -07:00
</Box>
);
};