238 lines
5.6 KiB
TypeScript
238 lines
5.6 KiB
TypeScript
import type { DashboardData } from "@/types/dashboard"
|
|
|
|
export function getDashboardData(): DashboardData {
|
|
return {
|
|
metrics: [
|
|
{
|
|
id: "1",
|
|
title: "Income",
|
|
value: "45,682",
|
|
change: -1.54,
|
|
changeLabel: "from last month",
|
|
icon: "DollarSign",
|
|
},
|
|
{
|
|
id: "2",
|
|
title: "Expenditure",
|
|
value: "34,226",
|
|
change: 4.2,
|
|
changeLabel: "from last month",
|
|
icon: "CreditCard",
|
|
},
|
|
{
|
|
id: "3",
|
|
title: "Saving",
|
|
value: "10,000",
|
|
change: 0,
|
|
changeLabel: "from last month",
|
|
icon: "DollarSign",
|
|
},
|
|
{
|
|
id: "4",
|
|
title: "Pension",
|
|
value: "1,500,231",
|
|
change: 2.1,
|
|
changeLabel: "from last month",
|
|
icon: "DollarSign",
|
|
},
|
|
],
|
|
revenueData: [
|
|
{ label: "Jan", value: 4200, secondaryValue: 2400 },
|
|
{ label: "Feb", value: 3800, secondaryValue: 2200 },
|
|
{ label: "Mar", value: 5200, secondaryValue: 2800 },
|
|
{ label: "Apr", value: 4600, secondaryValue: 2600 },
|
|
{ label: "May", value: 6100, secondaryValue: 3200 },
|
|
{ label: "Jun", value: 5800, secondaryValue: 3100 },
|
|
],
|
|
salesData: [
|
|
{ label: "Housing", value: 22000 },
|
|
{ label: "Groceries", value: 13200 },
|
|
{ label: "Transport", value: 3600 },
|
|
{ label: "Entertainment", value: 4100 },
|
|
{ label: "Shopping", value: 5200 },
|
|
{ label: "Insurance", value: 4900 },
|
|
{ label: "Other", value: 5800 },
|
|
],
|
|
payments: [
|
|
{
|
|
id: "1",
|
|
category: "groceries",
|
|
description: "Costco - Groceries & Household",
|
|
amount: 316.0,
|
|
},
|
|
{
|
|
id: "2",
|
|
category: "transport",
|
|
description: "BP Gas Station",
|
|
amount: 242.0,
|
|
},
|
|
{
|
|
id: "3",
|
|
category: "housing",
|
|
description: "Mortgage Payment - Wells Fargo",
|
|
amount: 837.0,
|
|
},
|
|
{
|
|
id: "4",
|
|
category: "insurance",
|
|
description: "Insurance Premium - State Farm",
|
|
amount: 874.0,
|
|
},
|
|
{
|
|
id: "5",
|
|
category: "utilities",
|
|
description: "Internet Service - Comcast",
|
|
amount: 721.0,
|
|
},
|
|
{
|
|
id: "6",
|
|
category: "entertainment",
|
|
description: "Amazon Prime - Annual Subscription",
|
|
amount: 456.0,
|
|
},
|
|
{
|
|
id: "7",
|
|
category: "shopping",
|
|
description: "Best Buy - Laptop Purchase",
|
|
amount: 592.0,
|
|
},
|
|
{
|
|
id: "8",
|
|
category: "groceries",
|
|
description: "Trader Joe's - Groceries",
|
|
amount: 389.0,
|
|
},
|
|
{
|
|
id: "9",
|
|
category: "transport",
|
|
description: "Car Repair - AutoZone",
|
|
amount: 1250.0,
|
|
},
|
|
{
|
|
id: "10",
|
|
category: "entertainment",
|
|
description: "Spotify Premium - Family Plan",
|
|
amount: 675.0,
|
|
},
|
|
{
|
|
id: "11",
|
|
category: "transport",
|
|
description: "Delta Airlines - Flight Tickets",
|
|
amount: 943.0,
|
|
},
|
|
{
|
|
id: "12",
|
|
category: "shopping",
|
|
description: "Home Depot - Home Improvement",
|
|
amount: 528.0,
|
|
},
|
|
],
|
|
transactions: [
|
|
{
|
|
id: "1",
|
|
description: "Whole Foods Market - Groceries",
|
|
amount: 127.43,
|
|
},
|
|
{
|
|
id: "2",
|
|
description: "Shell Gas Station",
|
|
amount: 52.18,
|
|
},
|
|
{
|
|
id: "3",
|
|
description: "Netflix Subscription",
|
|
amount: 15.99,
|
|
},
|
|
{
|
|
id: "4",
|
|
description: "Amazon.com - Electronics",
|
|
amount: 243.67,
|
|
},
|
|
{
|
|
id: "5",
|
|
description: "Starbucks Coffee",
|
|
amount: 6.75,
|
|
},
|
|
{
|
|
id: "6",
|
|
description: "Electric Company - Monthly Bill",
|
|
amount: 89.32,
|
|
},
|
|
{
|
|
id: "7",
|
|
description: "Target - Household Items",
|
|
amount: 94.21,
|
|
},
|
|
{
|
|
id: "8",
|
|
description: "Uber Ride",
|
|
amount: 18.50,
|
|
},
|
|
{
|
|
id: "9",
|
|
description: "Restaurant - Dinner",
|
|
amount: 67.89,
|
|
},
|
|
{
|
|
id: "10",
|
|
description: "Gym Membership",
|
|
amount: 45.00,
|
|
},
|
|
{
|
|
id: "11",
|
|
description: "Phone Bill - AT&T",
|
|
amount: 72.15,
|
|
},
|
|
{
|
|
id: "12",
|
|
description: "Apple Store - App Purchase",
|
|
amount: 4.99,
|
|
},
|
|
],
|
|
team: [
|
|
{
|
|
id: "1",
|
|
name: "Sofia Davis",
|
|
email: "sofia.davis@email.com",
|
|
role: "Product Designer",
|
|
avatar: "https://i.pravatar.cc/300?img=1",
|
|
},
|
|
{
|
|
id: "2",
|
|
name: "Jackson Lee",
|
|
email: "jackson.lee@email.com",
|
|
role: "Frontend Developer",
|
|
avatar: "https://i.pravatar.cc/300?img=12",
|
|
},
|
|
{
|
|
id: "3",
|
|
name: "Isabella Nguyen",
|
|
email: "isabella.nguyen@email.com",
|
|
role: "Backend Developer",
|
|
avatar: "https://i.pravatar.cc/300?img=5",
|
|
},
|
|
{
|
|
id: "4",
|
|
name: "William Kim",
|
|
email: "william.kim@email.com",
|
|
role: "UX Researcher",
|
|
avatar: "https://i.pravatar.cc/300?img=15",
|
|
},
|
|
{
|
|
id: "5",
|
|
name: "Emily Wilson",
|
|
email: "emily.wilson@email.com",
|
|
role: "Marketing Manager",
|
|
avatar: "https://i.pravatar.cc/300?img=20",
|
|
},
|
|
{
|
|
id: "6",
|
|
name: "Michael Brown",
|
|
email: "michael.brown@email.com",
|
|
role: "DevOps Engineer",
|
|
avatar: "https://i.pravatar.cc/300?img=33",
|
|
},
|
|
],
|
|
}
|
|
}
|