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
1.0 KiB
35 lines
1.0 KiB
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 RoadmapResources = ({ roadmap }) => { |
|
if (roadmap.upcoming) { |
|
return ( |
|
<> |
|
<RoadmapHeader roadmap={ roadmap } /> |
|
<UpcomingContainer> |
|
<GuideBody guide={{ fileName: 'upcoming' }} /> |
|
</UpcomingContainer> |
|
</> |
|
); |
|
} |
|
|
|
const filePath = roadmap.resources.replace(/^\//, ''); |
|
const ResourcesContent = require(`../../content/${filePath}`).default; |
|
|
|
return ( |
|
<SummaryContainer> |
|
<RoadmapHeader roadmap={ roadmap } page='resources' /> |
|
<Summary className="container"> |
|
<MdRenderer> |
|
<ResourcesContent /> |
|
</MdRenderer> |
|
<SharePage title={ roadmap.description } url={ roadmap.url } /> |
|
</Summary> |
|
</SummaryContainer> |
|
) |
|
}; |
|
|
|
export default RoadmapResources;
|
|
|