import React, { useState } from "react"; import { Link } from "react-router-dom"; import { useSocket } from "../hooks/use-socket"; import { Badge } from "../components/ui/badge"; import { StatCard } from "../components/stat-card"; import { RecentActivity } from "../components/recent-activity"; import { ActivityChart } from "../components/activity-chart"; import { LootdropCard } from "../components/lootdrop-card"; import { LeaderboardCard } from "../components/leaderboard-card"; import { CommandsDrawer } from "../components/commands-drawer"; import { Server, Users, Terminal, Activity, Coins, TrendingUp, Flame, Package } from "lucide-react"; import { cn } from "../lib/utils"; import { SettingsDrawer } from "../components/settings-drawer"; export function Dashboard() { const { isConnected, stats } = useSocket(); const [commandsDrawerOpen, setCommandsDrawerOpen] = useState(false); return (
{/* Navigation */} {/* Dashboard Content */}
{/* Stats Grid */}
0 ? '+' : ''}${stats.guilds.changeFromLastMonth} from last month` : "Active Guilds" } /> setCommandsDrawerOpen(true)} />
{/* Activity Chart */}
{/* Economy Stats */}

Economy Overview

{/* Recent Activity & Lootdrops */}

Live Feed

{/* Commands Drawer */}
); }