import React, { useState } from 'react'; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'; import { Button } from '@/components/ui/button'; import { Badge } from '@/components/ui/badge'; import { Switch } from '@/components/ui/switch'; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select'; import { Input } from '@/components/ui/input'; import { Label } from '@/components/ui/label'; import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'; import { Separator } from '@/components/ui/separator'; import { Slider } from '@/components/ui/slider'; import { Settings as SettingsIcon, User, Bell, Shield, Palette, Database, Target, Bot, Download, Upload, Trash2, Eye, EyeOff, Moon, Sun, Globe, Smartphone, Mail, Lock, CreditCard, TrendingUp, AlertTriangle, CheckCircle, IndianRupee } from 'lucide-react'; const Settings: React.FC = () => { const [settings, setSettings] = useState({ // Personal Settings displayName: 'Anjali', email: 'anjali@example.com', phone: '+91 98765 43210', dateOfBirth: '1995-06-15', occupation: 'Software Engineer', // Financial Preferences currency: 'INR', language: 'en', fiscalYearStart: 'april', riskTolerance: 'moderate', investmentHorizon: 'long_term', monthlyIncome: 85000, // Notifications emailNotifications: true, pushNotifications: true, weeklyReports: true, goalReminders: true, billReminders: true, marketAlerts: false, // Privacy & Security biometricAuth: true, twoFactorAuth: false, dataSharing: false, analyticsTracking: true, // AI Assistant aiPersonality: 'friendly', responseDetail: 'detailed', proactiveInsights: true, voiceEnabled: true, // App Preferences theme: 'system', compactMode: false, showTips: true, autoRefresh: true, refreshInterval: 5 }); const handleSettingChange = (key: string, value: any) => { setSettings(prev => ({ ...prev, [key]: value })); }; const currencyOptions = [ { value: 'INR', label: '₹ Indian Rupee', symbol: '₹' }, { value: 'USD', label: '$ US Dollar', symbol: '$' }, { value: 'EUR', label: '€ Euro', symbol: '€' }, { value: 'GBP', label: '£ British Pound', symbol: '£' } ]; const languageOptions = [ { value: 'en', label: 'English' }, { value: 'hi', label: 'हिन्दी (Hindi)' }, { value: 'bn', label: 'বাংলা (Bengali)' }, { value: 'ta', label: 'தமிழ் (Tamil)' } ]; const riskToleranceOptions = [ { value: 'conservative', label: 'Conservative', description: 'Lower risk, stable returns' }, { value: 'moderate', label: 'Moderate', description: 'Balanced risk and returns' }, { value: 'aggressive', label: 'Aggressive', description: 'Higher risk, potential for high returns' } ]; return (
Customize your AI financial companion to match your preferences
{option.description}
Receive important updates via email
Get instant alerts on your device
Receive weekly financial summaries
Get reminded about your financial goals
Never miss a bill payment
Receive important market updates
Use fingerprint/face ID to unlock the app
Add an extra layer of security
Share anonymized data to improve AI recommendations
Help us improve the app with usage analytics
AI will proactively suggest optimizations
Enable voice interactions with the AI
Show more information in less space
Display helpful tips throughout the app
Automatically refresh data in the background