import { useState } from 'react'; import classNames from 'classnames'; import { PageHeader, RoadmapMeta, ShareRoadmap, Sidebar, Summary, SummaryContainer, MobileNavHeader, SidebarButton, MobileSidebar, MobileSidebarWrap } from './style'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faFacebookSquare, faTwitterSquare, faRedditSquare, faGithubSquare } from '@fortawesome/free-brands-svg-icons' import { faBars } from '@fortawesome/free-solid-svg-icons' import { getFacebookShareUrl } from 'lib/url'; import { ShareIcon } from 'components/share-icon'; import { getRedditShareUrl, getTwitterShareUrl } from 'lib/url'; import siteConfig from "storage/site"; const DetailedRoadmap = ({ roadmap }) => { const [menuActive, setMenuState] = useState(false); const { sidebar = {}, page: currentPage = {}, author = {} } = roadmap; const roadmapPages = Object.keys(sidebar || {}).map(groupTitle => { return (

{ groupTitle }

); }); return (

{ roadmap.title }

Roadmap contributed by { author.name } { roadmap.contributorsCount > 1 && ` and ${roadmap.contributorsCount} others`}

setMenuState((prevMenuActive) => !prevMenuActive)}> { currentPage.title }
{ roadmapPages }
{ roadmapPages }

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aut beatae blanditiis commodi, consequatur, dicta distinctio esse et id, ipsa labore libero nisi odit placeat possimus saepe sed vel vitae voluptate?

) }; export default DetailedRoadmap;