computer-scienceangular-roadmapbackend-roadmapblockchain-roadmapdba-roadmapdeveloper-roadmapdevops-roadmapfrontend-roadmapgo-roadmaphactoberfestjava-roadmapjavascript-roadmapnodejs-roadmappython-roadmapqa-roadmapreact-roadmaproadmapstudy-planvue-roadmapweb3-roadmap
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1007 B
35 lines
1007 B
import { Summary, SummaryContainer, UpcomingContainer } from './style'; |
|
import GuideBody from 'components/guide-body'; |
|
import RoadmapHeader from 'components/roadmap-header'; |
|
import SharePage from 'components/share-page'; |
|
import MdRenderer from 'components/md-renderer'; |
|
|
|
const RoadmapSummary = ({ roadmap }) => { |
|
if (roadmap.upcoming) { |
|
return ( |
|
<> |
|
<RoadmapHeader roadmap={ roadmap } /> |
|
<UpcomingContainer> |
|
<GuideBody guide={{ fileName: 'upcoming' }} /> |
|
</UpcomingContainer> |
|
</> |
|
); |
|
} |
|
|
|
const filePath = roadmap.path.replace(/^\//, ''); |
|
const RoadmapContent = require(`../../storage/${filePath}`).default; |
|
|
|
return ( |
|
<SummaryContainer> |
|
<RoadmapHeader roadmap={ roadmap } /> |
|
<Summary className="container"> |
|
<MdRenderer> |
|
<RoadmapContent /> |
|
</MdRenderer> |
|
<SharePage title={ roadmap.description } url={ roadmap.url } /> |
|
</Summary> |
|
</SummaryContainer> |
|
) |
|
}; |
|
|
|
export default RoadmapSummary;
|
|
|