import {GetStaticProps} from 'next' import Head from 'next/head' import {Card} from '@/components/Card' import {SimpleLayout} from '@/components/SimpleLayout' import {SocialLink} from '@/components/SocialLink' import {StarIcon} from '@/components/StarIcon' import {getPinnedRepos} from '@/lib/github' 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) } } }