import siteConfig from '../../content/site.json'; import { isInteractiveRoadmap, RoadmapType } from '../../lib/roadmap'; import { NewAlertBanner } from './new-alert-banner'; import { Badge, Box, Button, Container, Flex, Heading, Input, Link, Modal, ModalBody, ModalCloseButton, ModalContent, ModalOverlay, Stack, Text, useDisclosure } from '@chakra-ui/react'; import { AtSignIcon, ChatIcon, DownloadIcon } from '@chakra-ui/icons'; import React from 'react'; import { SIGNUP_EMAIL_INPUT_NAME, SIGNUP_FORM_ACTION } from '../../pages/signup'; import { event } from '../../lib/gtag'; type RoadmapPageHeaderType = { roadmap: RoadmapType; }; function RoadmapDownloader({ roadmapTitle }: { roadmapTitle: string }) { const { isOpen, onOpen, onClose } = useDisclosure(); const initialRef = React.useRef(null); return ( <> Download Roadmap Enter your email below to receive the download link.
{ event({ category: 'Subscription', action: `Submitted Download ${roadmapTitle} Roadmap Email`, label: `PDF / Subscribe ${roadmapTitle} Roadmap` }); onClose(); }}>
); } export function RoadmapPageHeader(props: RoadmapPageHeaderType) { const { roadmap } = props; return ( {roadmap.title} {roadmap.description} {isInteractiveRoadmap(roadmap.id) && ( New Resources are here, try clicking any nodes. )} ); }