import React from 'react'; import * as Dialog from '@radix-ui/react-dialog'; import { X } from 'lucide-react'; import { PromptHint } from '../types'; import { Button } from './ui/Button'; const promptHints: PromptHint[] = [ { category: 'subject', text: 'Be specific about the main subject', example: '"A vintage red bicycle" vs "bicycle"' }, { category: 'scene', text: 'Describe the environment and setting', example: '"in a cobblestone alley during golden hour"' }, { category: 'action', text: 'Include movement or activity', example: '"cyclist pedaling through puddles"' }, { category: 'style', text: 'Specify artistic style or mood', example: '"cinematic photography, moody lighting"' }, { category: 'camera', text: 'Add camera perspective details', example: '"shot with 85mm lens, shallow depth of field"' } ]; const categoryColors = { subject: 'bg-blue-500/10 border-blue-500/30 text-blue-400', scene: 'bg-green-500/10 border-green-500/30 text-green-400', action: 'bg-purple-500/10 border-purple-500/30 text-purple-400', style: 'bg-orange-500/10 border-orange-500/30 text-orange-400', camera: 'bg-pink-500/10 border-pink-500/30 text-pink-400', }; interface PromptHintsProps { open: boolean; onOpenChange: (open: boolean) => void; } export const PromptHints: React.FC = ({ open, onOpenChange }) => { return (
提示质量技巧
{promptHints.map((hint, index) => (
{hint.category}

{hint.text}

{hint.example}

))}

最佳实践: 写完整的句子来描述整个场景, 而不仅仅是关键词。想象"用文字为我画一幅画"。

); };