import {SimpleLayout} from '@/components/layouts/SimpleLayout' import {Card} from '@/components/ui/Card' import {CardGroup} from '@/components/ui/CardGroup' import {getDashboardData} from '@/lib/dashboard' import {numberFormat} from '@/lib/numberFormat' export const metadata = { title: 'Dashboard - Ryan Freeman', description: 'This is my digital life in numbers, I use this dashboard to keep track of various metrics across platforms like Spotify, GitHub, Twitter and for monitoring the performance of my Raspberry Pi using Grafana and Prometheus.' } export const dynamic = 'force-dynamic' export default async function Dashboard() { const metrics = await getDashboardData() return ( {metrics.map(({groupName, groupItems}) => ( {groupItems.map((item) => (

{item.title}

{typeof item.value === "number" ? numberFormat(item.value) : item.value}
))}
))}
) }