import { useNavigate } from 'react-router-dom';
import { motion } from 'framer-motion';
import { ArrowLeft, Moon, Sun } from 'lucide-react';
import { useThemeStore } from '../store/themeStore';
export default function SettingsPage() {
const navigate = useNavigate();
const { theme, setTheme } = useThemeStore();
return (
{/* Header */}
{/* Settings Card */}
Настройки
{/* Appearance Section */}
Внешний вид
{/* Theme Selector */}
{/* Light Theme */}
setTheme('light')}
className="relative p-3 md:p-6 rounded-lg md:rounded-2xl border-2 transition-all min-h-touch"
style={{
backgroundColor: theme === 'light' ? 'var(--accent-primary-soft)' : 'var(--bg-input)',
borderColor: theme === 'light' ? 'var(--accent-primary)' : 'transparent',
}}
>
Светлая тема
{theme === 'light' && (
)}
{/* Dark Theme */}
setTheme('dark')}
className="relative p-3 md:p-6 rounded-lg md:rounded-2xl border-2 transition-all min-h-touch"
style={{
backgroundColor: theme === 'dark' ? 'var(--accent-primary-soft)' : 'var(--bg-input)',
borderColor: theme === 'dark' ? 'var(--accent-primary)' : 'transparent',
}}
>
Темная тема
{theme === 'dark' && (
)}
Выберите тему оформления
);
}