import { GetStaticPaths , GetStaticProps } from 'next' ; import { FC } from 'react' ; import { Page } from '~/components/blocks' ; import { Release , ReleaseProps } from '~/components/sections' ; const releasesRepos = [ 'Frames' , 'Blueprint' , 'Kuper' , 'ChipView' , 'FABsMenu' ] ; const ReleasePage = ( { repo } ) => { return ( < Page title = { `${ repo } Download ~ Jahir Fiquitiva 💎` } > < Release repo = { repo } /> < /Page>); } ; export default ReleasePage ; export const getStaticProps = async ( { params } ) => { const { repo } = params ; return { props : { repo } } ; } ; export const getStaticPaths = async ( ) => { const paths = releasesRepos . map ( ( slug ) => `/gh-releases/${ slug . toLowerCase ( ) }` ) ; return { paths , fallback : false } ; } ;