import React from 'react'; import { Row, Col } from '@freecodecamp/react-bootstrap'; import PropTypes from 'prop-types'; import { graphql, useStaticQuery } from 'gatsby'; import i18next from 'i18next'; import { ImageLoader, Link } from '../helpers'; import LinkButton from '../../assets/icons/LinkButton'; import { dasherize } from '../../../../utils/slugs'; import './map.css'; const propTypes = { currentSuperBlock: PropTypes.string, forLanding: PropTypes.bool }; const codingPrepRE = new RegExp('Interview Prep'); function createSuperBlockTitle(str) { const superBlockTitle = i18next.t(`intro:${dasherize(str)}.title`); return codingPrepRE.test(str) ? `${superBlockTitle} ${i18next.t('learn.cert-map-estimates.coding-prep')}` : `${superBlockTitle} ${i18next.t('learn.cert-map-estimates.certs')}`; } const iconStyle = { width: '55px', height: '55px', marginRight: '20px' }; const linkSpacingStyle = { display: 'flex', justifyContent: 'space-between', alignItems: 'center' }; function renderLandingMap(nodes) { nodes = nodes.filter(node => node.superBlock !== 'Coding Interview Prep'); return (