import React from "react"; import { Card, CardHeader, CardTitle, CardContent } from "@/components/ui/card"; import { DollarSign, TrendingUp, Calendar, Award } from "lucide-react"; import { BarChart, Bar, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer } from 'recharts'; export default function WorkforceEarnings() { const earningsData = [ { month: 'Jan', earnings: 2400, hours: 96 }, { month: 'Feb', earnings: 2800, hours: 112 }, { month: 'Mar', earnings: 3200, hours: 128 }, { month: 'Apr', earnings: 2600, hours: 104 }, { month: 'May', earnings: 3400, hours: 136 }, ]; const stats = { totalEarnings: 14400, thisMonth: 3400, totalHours: 576, avgHourly: 25, }; return (

My Earnings

Track your income and hours worked

{/* Stats */}

Total Earnings (YTD)

${stats.totalEarnings.toLocaleString()}

This Month

${stats.thisMonth.toLocaleString()}

Total Hours

{stats.totalHours}

Avg Hourly

${stats.avgHourly}

{/* Earnings Chart */} Monthly Earnings {/* Payment History */} Recent Payments
{[ { date: "May 15, 2025", event: "Tech Conference 2025", hours: 32, amount: 800 }, { date: "May 8, 2025", event: "Product Launch", hours: 24, amount: 600 }, { date: "May 1, 2025", event: "Corporate Event", hours: 40, amount: 1000 }, ].map((payment, index) => (

{payment.event}

{payment.date} • {payment.hours} hours

${payment.amount}

))}
); }