import { GetStaticProps, NextPage } from 'next' import dynamic from 'next/dynamic' import { SpecialEndPoints } from '@utils/Constants' const Docs = dynamic(() => import('@components/Docs')) const Markdown = dynamic(() => import('@components/Markdown')) const Guidelines: NextPage = ({ content }) => { return ( ) } interface GuidelinesProps { content: string } export const getStaticProps: GetStaticProps = async () => { const res = await fetch(SpecialEndPoints.Github.Content('koreanbots', 'terms', 'guidelines.md')) const json = await res.json() return { props: { content: Buffer.from(json.content, 'base64').toString('utf-8'), }, } } export default Guidelines