import React from "react" ; import { NextPage } from "next" ; import Viewer from "../../../../components/Viewer" ; import { PageProps } from "../../../../types" ; import getSubredditInitialProps from "../../../../libs/getSubredditInitialProps" ; const PostPage = ( { error , ... props } ) => { error && console . log ( error ) ; return < Viewer { ... props } / > ; } ; PostPage . getInitialProps = getSubredditInitialProps ; export default PostPage ;