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

46 lines
1.2 KiB
TypeScript
Raw Normal View History

/**
* @license
* Copyright 2025 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();
return (
<Box flexDirection="column">
2025-09-10 10:57:07 -07:00
<Text color={theme.text.primary}>Tips for getting started:</Text>
<Text color={theme.text.primary}>
2025-06-22 16:02:48 -07:00
1. Ask questions, edit files, or run commands.
2025-05-24 12:06:44 -07:00
</Text>
2025-09-10 10:57:07 -07:00
<Text color={theme.text.primary}>
2. Be specific for the best results.
2025-05-24 12:06:44 -07:00
</Text>
{geminiMdFileCount === 0 && (
2025-09-10 10:57:07 -07:00
<Text color={theme.text.primary}>
3. Create{' '}
2025-09-10 10:57:07 -07:00
<Text bold color={theme.text.accent}>
2025-05-24 12:06:44 -07:00
GEMINI.md
</Text>{' '}
files to customize your interactions with Gemini.
</Text>
)}
2025-09-10 10:57:07 -07:00
<Text color={theme.text.primary}>
{geminiMdFileCount === 0 ? '4.' : '3.'}{' '}
2025-09-10 10:57:07 -07:00
<Text bold color={theme.text.accent}>
/help
</Text>{' '}
for more information.
</Text>
2025-05-24 12:06:44 -07:00
</Box>
);
};