"use client" import { useEffect, useState } from "react" import { motion } from "framer-motion" import { Zap, Heart, Users, Award } from "lucide-react" const FlameLoop = () => { const [feedItems, setFeedItems] = useState([]) const [userProgress, setUserProgress] = useState({ level: 4, title: "Community Builder", xp: 720, nextLevel: 1000, }) // Simulated real-time feed useEffect(() => { const mockFeed = [ { id: 1, user: "Fatima_K", action: "completed HealthID course", flb: 50, location: "πŸ‡³πŸ‡¬", time: "2 min ago", }, { id: 2, user: "Kwame_T", action: "donated to Lagos Health Clinic", flb: 100, location: "πŸ‡¬πŸ‡­", time: "5 min ago", }, { id: 3, user: "Lerato_M", action: "started Solar Tech certification", flb: 0, location: "πŸ‡ΏπŸ‡¦", time: "8 min ago", }, { id: 4, user: "You", action: "earned 30 FLB from DAO vote", flb: 30, location: "πŸ“ Your Location", time: "Just now", }, { id: 5, user: "Chinwe_O", action: "formed new Tribe: Digital Farmers", flb: 0, location: "πŸ‡³πŸ‡¬", time: "15 min ago", }, ] setFeedItems(mockFeed) }, []) return (
{/* XP Progress Header */}
Level {userProgress.level}
{userProgress.title}
{userProgress.xp}/{userProgress.nextLevel} XP
{/* Infinite Achievement Feed */}
{feedItems.map((item, index) => (
{item.location}
{item.user} {item.flb > 0 && ( +{item.flb} FLB )}

{item.action}

{item.time}
))}
{/* Quick Action Bar */}
Earn Now Impact Tribe Quests
) } export default FlameLoop