"use client" import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card" import { Badge } from "@/components/ui/badge" import { Button } from "@/components/ui/button" import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar" import { useMaterial } from "@/contexts/material-context" import { cn } from "@/lib/utils" import { BarChart3, ArrowUpRight, ArrowDownRight, Users, CreditCard, Activity, Bell, Search, Settings, Menu, } from "lucide-react" export function DashboardExample() { const { selectedMaterial, getThemeAwareClass } = useMaterial() const materialClass = selectedMaterial ? getThemeAwareClass(selectedMaterial) : "" return (
{/* Header */}

Analytics Dashboard

JD
{/* Stats Cards */}
Total Revenue
$45,231.89

+20.1% from last month

Subscriptions
+2,350

+18.2% from last month

Active Users
+12,234

+4.3% from last month

Bounce Rate
-12.5%

+1.8% from last month

{/* Chart and Activity */}
Overview
{/* Chart Mockup */}
{Array.from({ length: 12 }).map((_, i) => (
))}
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
Recent Activity
{[ { user: "John Doe", action: "purchased Premium Plan", time: "2 min ago" }, { user: "Sarah Smith", action: "created a new post", time: "1 hour ago" }, { user: "Alex Johnson", action: "commented on your post", time: "3 hours ago" }, { user: "Lisa Wang", action: "subscribed to newsletter", time: "5 hours ago" }, ].map((item, i) => (
{item.user .split(" ") .map((n) => n[0]) .join("")}

{item.user} {item.action}

{item.time}

{i === 0 && New}
))}
) }