"use client"; import { Save, Bell, Lock } from "lucide-react"; import { useState } from "react"; export default function SettingsPage() { const [settings, setSettings] = useState({ emailNotifications: true, pushNotifications: false, marketingEmails: false, publicProfile: true, dataCollection: true, }); const handleToggle = (key: keyof typeof settings) => { setSettings((prev) => ({ ...prev, [key]: !prev[key] })); }; return (
{/* Header */}

Settings

Manage your preferences

{/* Notification Settings */}

Notifications

{[ { key: "emailNotifications" as const, label: "Email Notifications", desc: "Receive updates about new characters and messages", }, { key: "pushNotifications" as const, label: "Push Notifications", desc: "Get notifications on your device", }, { key: "marketingEmails" as const, label: "Marketing Emails", desc: "Receive promotional content and special offers", }, ].map((item) => (

{item.label}

{item.desc}

))}
{/* Privacy Settings */}

Privacy

{[ { key: "publicProfile" as const, label: "Public Profile", desc: "Allow other users to see your profile", }, { key: "dataCollection" as const, label: "Data Collection", desc: "Allow us to collect usage data for improvements", }, ].map((item) => (

{item.label}

{item.desc}

))}
{/* Save Button */}
); }