mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
47 lines
1.3 KiB
TypeScript
47 lines
1.3 KiB
TypeScript
/**
|
|
* @license
|
|
* Copyright 2025 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import type React from 'react';
|
|
import { Box, Text } from 'ink';
|
|
import { theme } from '../semantic-colors.js';
|
|
import { type Config } from '@qwen-code/qwen-code-core';
|
|
import { t } from '../../i18n/index.js';
|
|
|
|
interface TipsProps {
|
|
config: Config;
|
|
}
|
|
|
|
export const Tips: React.FC<TipsProps> = ({ config }) => {
|
|
const geminiMdFileCount = config.getGeminiMdFileCount();
|
|
return (
|
|
<Box flexDirection="column">
|
|
<Text color={theme.text.primary}>{t('Tips for getting started:')}</Text>
|
|
<Text color={theme.text.primary}>
|
|
{t('1. Ask questions, edit files, or run commands.')}
|
|
</Text>
|
|
<Text color={theme.text.primary}>
|
|
{t('2. Be specific for the best results.')}
|
|
</Text>
|
|
{geminiMdFileCount === 0 && (
|
|
<Text color={theme.text.primary}>
|
|
3. Create{' '}
|
|
<Text bold color={theme.text.accent}>
|
|
QWEN.md
|
|
</Text>{' '}
|
|
{t('files to customize your interactions with Qwen Code.')}
|
|
</Text>
|
|
)}
|
|
<Text color={theme.text.primary}>
|
|
{geminiMdFileCount === 0 ? '4.' : '3.'}{' '}
|
|
<Text bold color={theme.text.accent}>
|
|
/help
|
|
</Text>{' '}
|
|
{t('for more information.')}
|
|
</Text>
|
|
</Box>
|
|
);
|
|
};
|