import Head from 'next/head' import {GetStaticProps} from 'next' import {SimpleLayout} from '@/components/SimpleLayout' import {Card} from '@/components/Card' import {numberFormat} from '@/lib/numberFormat' import {dashboard} from '@/lib/dashboard' type CardProps = { title: string total: number href: string } export default function Dashboard({cards}: { cards: CardProps[] }) { return ( <> Dashboard - Ryan Freeman ) } export const getStaticProps: GetStaticProps = async () => { return { props: { cards: (await dashboard()) } } }