import { useState } from 'react'; import { useTranslation } from 'react-i18next'; import { Cpu, Save, Globe } from 'lucide-react'; export default function SettingsPage() { const [selectedModel] = useState('gpt-4o-mini'); const [imageModel] = useState('stable-diffusion-v1-6'); const { t, i18n } = useTranslation(); const handleLanguageChange = (e: React.ChangeEvent) => { i18n.changeLanguage(e.target.value); }; const handleSave = () => { // Settings are now fixed to cloud models alert('Cloud AI models are configured automatically!'); }; return (

{t('settings.title')}

Cloud AI configuration and application preferences

{/* Language Configuration */}

{t('settings.language')}

{/* Cloud AI Configuration */}

Cloud AI Settings

Used for book outlines, chapters, and text generation (free tier)

Used for AI book cover generation (free credits available)

{/* API Setup Help */}

API Key Setup

Configure your API key in the server/.env file:

OPENROUTER_API_KEY=your_openrouter_api_key_here

Get a free API key from: OpenRouter

{/* Save Button */}
); }