import { useState } from 'react'
import { User, Lock, Bell, Globe, Trash2 } from 'lucide-react'
export default function Settings({ userSettings, onUpdate }) {
const [settings, setSettings] = useState(userSettings || {
notifications: {
newFollowers: true,
comments: true,
likes: false,
mentions: true,
},
privacy: {
profileVisibility: 'public',
showListeningHistory: true,
allowComments: true,
},
account: {
email: 'john.doe@email.com',
username: 'johndoe',
}
})
const handleToggle = (category, setting) => {
setSettings(prev => ({
...prev,
[category]: {
...prev[category],
[setting]: !prev[category][setting]
}
}))
}
return (
Settings
{/* Account Settings */}
{/* Privacy Settings */}
Privacy
Profile Visibility
Who can see your profile
Show Listening History
Allow others to see what you've listened to
Allow Comments
Let others comment on your posts
{/* Notification Settings */}
Notifications
New Followers
When someone follows you
Comments
When someone comments on your post
Likes
When someone likes your post
Mentions
When someone mentions you
{/* Danger Zone */}
Danger Zone
{/* Save Button */}
)
}