import Head from 'next/head' import {SimpleLayout} from '@/components/SimpleLayout' import {Card} from '@/components/Card' import {numberFormat} from '@/lib/numberFormat' import {getTotalFollowers, getTotalRepos} from '@/lib/github' import {GetStaticProps} from 'next' export default function Dashboard({totalRepos, totalFollowers}: { totalRepos: number, totalFollowers: number }) { return ( <> Dashboard - Ryan Freeman ) } export const getStaticProps: GetStaticProps = async () => { const totalRepos = await getTotalRepos() const totalFollowers = await getTotalFollowers() return { props: { totalRepos, totalFollowers } } }