"use client"; import { Search, Filter, Brain, ArrowUpRight, ArrowDownRight, DollarSign, Activity, PieChart, Download, Wallet, Plus } from "lucide-react"; import { Bar, BarChart, CartesianGrid, ResponsiveContainer, Tooltip, XAxis, YAxis, Area, AreaChart, Pie, PieChart as RechartsPieChart, Cell } from "recharts"; // Mock Data const cashFlowData = [ { month: "Jan", in: 45000, out: 28000 }, { month: "Feb", in: 52000, out: 31000 }, { month: "Mar", in: 48000, out: 29000 }, { month: "Apr", in: 61000, out: 34000 }, { month: "May", in: 59000, out: 42000 }, { month: "Jun", in: 75000, out: 38000 }, ]; const expensesData = [ { name: "Payroll", value: 45000, color: "#6C5BB0" }, { name: "Software/SaaS", value: 12000, color: "#54468B" }, { name: "Marketing", value: 18000, color: "#3B3161" }, { name: "Office/Rent", value: 8000, color: "#221C38" }, ]; const recentTransactions = [ { id: 1, desc: "Stripe Payout", category: "Revenue", amount: "+$12,450.00", date: "Today", status: "Completed" }, { id: 2, desc: "Amazon Web Services", category: "Software", amount: "-$3,240.50", date: "Yesterday", status: "Completed" }, { id: 3, desc: "Google Ads", category: "Marketing", amount: "-$4,500.00", date: "May 15", status: "Pending" }, { id: 4, desc: "WeWork Remote", category: "Office", amount: "-$1,200.00", date: "May 12", status: "Completed" }, ]; export default function FinancePage() { return (
{/* Top Header */}

Management / Finance

{/* AI Financial Analyst */}

AI Financial Analyst

I detected an anomaly: Software/SaaS expenses increased by 22% compared to last month. Specifically, AWS costs spiked. AI recommends auditing idle EC2 instances to save approximately $850/mo.

{/* KPI Row */}

Total Revenue (MTD)

$124,500 8.4%

Monthly Burn Rate

$42,300 2.1%

Cash Runway

14.2 Months

AI Profitability Score

94/100 Optimal
{/* Charts & Tables */}
{/* Cash Flow Chart */}

Cash Flow Overview

Revenue vs Expenses over the last 6 months.

Inflow
Outflow
`$${val/1000}k`} />
{/* Expenses Pie & Recent Transactions */}

Expenses Breakdown

{expensesData.map((entry, index) => ( ))}
Total $83k
{expensesData.map((item, idx) => (
{item.name}
${(item.value / 1000).toFixed(1)}k
))}
{/* AI Categorized Transactions */}

Recent Transactions

Auto-Categorized by AI
Description
Category
Date
Amount
Status
{recentTransactions.map((tx) => (
{tx.desc}
{tx.category}
{tx.date}
{tx.amount}
{tx.status}
))}
); }