import { GetServerSideProps } from 'next' import { BeakerIcon, ZapIcon } from '@primer/octicons-react' import { MainContextT, MainContext, getMainContext } from 'components/context/MainContext' import { PlaygroundContextProvider, usePlaygroundContext, } from 'components/context/PlaygroundContext' import { PlaygroundArticle } from 'components/playground/PlaygroundArticle' import { Editor } from 'components/playground/editor/Editor' import { DefaultLayout } from 'components/DefaultLayout' import { CodeLanguagePicker } from 'components/playground/CodeLanguagePicker' import { Link } from 'components/Link' import { useRouter } from 'next/router' import { Callout } from 'components/ui/Callout' import { GenericError } from 'components/GenericError' type Props = { mainContext: MainContextT } export default function PlaygroundArticlePage({ mainContext }: Props) { return ( ) } function PageInner() { const router = useRouter() const { article } = usePlaygroundContext() if (!article) { return } return (

You've found one of our experimental articles! Have ideas or feedback for how we can further improve this article? Let us know{' '} in the discussion .

Switch to non-interactive article
) } export const getServerSideProps: GetServerSideProps = async (context) => { const req = context.req as any const res = context.res as any return { props: { mainContext: getMainContext(req, res), }, } }