/** * Mini Stat Cards Demo * Individual statistics cards with sparkline trends */ import React from 'react' export default function MiniStatCards() { const stats = [ { label: 'Active Sessions', value: 12, trend: [8, 10, 9, 11, 10, 12, 12], color: 'blue' }, { label: 'Total Tasks', value: 48, trend: [40, 42, 45, 44, 46, 47, 48], color: 'green' }, { label: 'Completed', value: 35, trend: [25, 28, 30, 32, 33, 34, 35], color: 'emerald' }, { label: 'Pending', value: 8, trend: [12, 10, 11, 9, 8, 7, 8], color: 'amber' }, { label: 'Failed', value: 5, trend: [3, 4, 3, 5, 4, 5, 5], color: 'red' }, { label: 'Today Activity', value: 23, trend: [5, 10, 15, 18, 20, 22, 23], color: 'purple' }, ] const colorMap = { blue: 'text-blue-500 bg-blue-500/10', green: 'text-green-500 bg-green-500/10', emerald: 'text-emerald-500 bg-emerald-500/10', amber: 'text-amber-500 bg-amber-500/10', red: 'text-red-500 bg-red-500/10', purple: 'text-purple-500 bg-purple-500/10', } return (

Statistics with Sparklines

{stats.map((stat, i) => (
{stat.label}
{stat.value}
{stat.trend.map((v, j) => (
))}
))}
) }