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.
36 lines
1.1 KiB
36 lines
1.1 KiB
import { Summary, SummaryContainer, UpcomingContainer } from './style'; |
|
import classNames from 'classnames'; |
|
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(`../../content/${filePath}`).default; |
|
|
|
return ( |
|
<SummaryContainer> |
|
<RoadmapHeader roadmap={ roadmap } /> |
|
<Summary className={classNames("container", { "container-small": roadmap.isTextHeavy })}> |
|
<MdRenderer> |
|
<RoadmapContent /> |
|
</MdRenderer> |
|
<SharePage title={ roadmap.description } url={ roadmap.url } /> |
|
</Summary> |
|
</SummaryContainer> |
|
) |
|
}; |
|
|
|
export default RoadmapSummary;
|
|
|