import React, { useEffect, useState } from 'react' import LevelBadge from '../../components/xp/LevelBadge' export default function TopCreatorsWidget() { const [data, setData] = useState({ items: [] }) const [loading, setLoading] = useState(true) useEffect(() => { let cancelled = false async function load() { try { const response = await window.axios.get('/api/leaderboard/creators?period=weekly') if (!cancelled && response.data) { setData(response.data) } } finally { if (!cancelled) { setLoading(false) } } } load() return () => { cancelled = true } }, []) const items = Array.isArray(data?.items) ? data.items.slice(0, 5) : [] return (

Leaderboard

Top Creators

A quick weekly pulse on who is gaining the most traction across the platform.

View all
{loading ?

Loading leaderboard...

: null} {!loading && items.length === 0 ? (

No creators ranked yet.

Rankings will appear here once weekly creator scoring is available.

) : null} {!loading && items.length > 0 ? (
{items.map((item) => { const entity = item.entity || {} return (
#{item.rank}
{entity.avatar ? {entity.name : null}

{entity.name}

{Math.round(item.score)} Weekly score
) })}
) : null}
) }