'use client';
import { useState } from 'react';
import { motion } from 'framer-motion';
import { Shield, Zap, Scale, Sparkles, Download, Trash2, Bell, Eye, Languages } from 'lucide-react';
import * as Switch from '@radix-ui/react-switch';
export default function SettingsPage() {
const [mode, setMode] = useState('balanced');
const [saveHistory, setSaveHistory] = useState(true);
const [personalization, setPersonalization] = useState(true);
const [notifications, setNotifications] = useState(false);
const [language, setLanguage] = useState('ru');
return (
{/* Header */}
Настройки
Персонализируйте ваш опыт
{/* Default Mode */}
{[
{ id: 'speed', label: 'Быстрый', icon: Zap, desc: '~10 сек' },
{ id: 'balanced', label: 'Баланс', icon: Scale, desc: '~30 сек' },
{ id: 'quality', label: 'Качество', icon: Sparkles, desc: '~60 сек' },
].map((m) => (
))}
{/* Privacy & Data */}
{/* Language */}
{[
{ id: 'ru', label: 'Русский', flag: '🇷🇺' },
{ id: 'en', label: 'English', flag: '🇺🇸' },
].map((lang) => (
))}
{/* Data Management */}
{/* About */}
GooSeek v1.0.0
AI-поиск нового поколения
);
}
function Section({ title, icon: Icon, children }: { title: string; icon: React.ElementType; children: React.ReactNode }) {
return (
{title}
{children}
);
}
interface ToggleRowProps {
icon: React.ElementType;
label: string;
description: string;
checked: boolean;
onChange: (v: boolean) => void;
}
function ToggleRow({ icon: Icon, label, description, checked, onChange }: ToggleRowProps) {
return (
);
}