import {GetStaticProps} from 'next' import Head from 'next/head' import {Card} from '@/components/Card' import {SimpleLayout} from '@/components/layouts/SimpleLayout' import {StarIcon} from '@/components/icons/StarIcon' import {ForkIcon} from '@/components/icons/ForkIcon' import {getPinnedRepos} from '@/lib/github' import {numberFormat} from '@/lib/numberFormat' import type {Repo} from '@/types' export default function Projects({pinnedRepos}: { pinnedRepos: Repo[] }) { return ( <> Projects - Ryan Freeman ) } export const getStaticProps: GetStaticProps = async () => { return { props: { pinnedRepos: (await getPinnedRepos()) .sort((a, b) => b.stargazerCount - a.stargazerCount) } } }