import Error from 'next/error';
import DefaultLayout from 'layouts/default';
import SiteNav from 'components/site-nav';
import PageFooter from 'components/page-footer';
import { serverOnlyProps } from 'lib/server';
import { getRequestedRoadmap } from 'lib/roadmap';
import Helmet from 'components/helmet';
import RoadmapSummary from 'components/roadmap-summary';
import DetailedRoadmap from '../../components/detailed-roadmap';
const Roadmap = ({ roadmap }) => {
if (!roadmap) {
return
}
const showSummary = roadmap.upcoming || !roadmap.detailed;
return (
{ showSummary ? : }
);
};
Roadmap.getInitialProps = serverOnlyProps(({ req }) => {
return {
roadmap: getRequestedRoadmap(req),
};
});
export default Roadmap;