"use client" import { DollarSign, TrendingUp, TrendingDown, ArrowUpRight, ArrowDownRight, } from "lucide-react" import { Card, CardContent, CardHeader, CardTitle } from "@/shared/components/ui/card" import type { DashboardData } from "./use-dashboard-data" type Props = { data: DashboardData } export function FinancialTotalsCards({ data }: Props) { const totals = data.totals return (
Total Income
{totals?.total_income_text ?? `${totals?.currency ?? ""} 0.00`}
Income this period
Total Expenses
{totals?.total_expense_text ?? `${totals?.currency ?? ""} 0.00`}
Expenses this period
) }