'use client' import { useState } from 'react' import { useRouter } from 'next/navigation' import Link from 'next/link' import { Pencil, ChevronRight, ShoppingBag, HandHeart, MessageSquareText, MapPin, Flame, Bell, Sun, Crown, LogOut, Wallet, } from 'lucide-react' /* ─── Quick Actions ──────────────────────────────────────────── */ const QUICK_ACTIONS = [ { href: '/souq', icon: ShoppingBag, label: 'Souq' }, { href: '/waqf', icon: HandHeart, label: 'Waqf' }, { href: '/forum', icon: MessageSquareText, label: 'Forum' }, { href: '/halal-monitor', icon: MapPin, label: 'Halal Monitor' }, ] /* ─── Settings Items ─────────────────────────────────────────── */ const SETTINGS = [ { icon: Flame, label: 'Spirituality Stats', value: '124-day streak', color: 'text-orange-400', }, { icon: Bell, label: 'Notifications', value: '', color: 'text-[#999]', }, { icon: Sun, label: 'Appearance', value: 'Dark Mode', color: 'text-[#999]', }, { icon: Crown, label: 'Upgrade to Pro', value: '', color: 'text-[#D4AF37]', gold: true, }, ] /* ─── Component ──────────────────────────────────────────────── */ export default function ProfilePage() { const router = useRouter() const handleSignOut = () => { if (typeof window !== 'undefined') { localStorage.clear() } router.push('/login') } return (
{/* Scrollable content */}
{/* ═══ Profile Header ═══ */}
{/* Avatar */}
A
{/* Name + badges */}

Ahmad

ahmad@email.com

{/* Premium badge */} Premium {/* Level badge */} Lvl 7
{/* ═══ FLH Wallet Card ═══ */}

FLH Wallet

1,250 ≈ .50 USD
{/* ═══ Quick Action Grid (2x2) ═══ */}

Quick Actions

{QUICK_ACTIONS.map((action) => { const Icon = action.icon return (

{action.label}

) })}
{/* ═══ Settings List ═══ */}

Settings

{SETTINGS.map((item, idx) => { const Icon = item.icon return ( ) })}
{/* ═══ Sign Out ═══ */}
{/* Bottom spacer */}
) }