import { Badge, Page, Text } from "@geist-ui/core"; import { GetServerSidePropsContext } from "next" import Document from '../../components/document' import Header from "../../components/header"; import VisibilityBadge from "../../components/visibility-badge"; import { ThemeProps } from "../_app"; type Props = ThemeProps & { post: any } const Post = ({ post, theme, changeTheme }: Props) => { if (!post.files) { return