// @flow import * as React from 'react'; import Link from 'next/link'; import { Container, ButtonRowContainer, Label, LogoLink, Progression, ProgressBar, ProgressLabel } from './style'; import { PrimaryButton, GhostButton } from '../Button'; import Logo from './Logo'; import Confetti from './Confetti'; type Props = { showHeaderShadow: boolean, displayProgress: boolean, totalItemsCount: number, currentCount: number, }; export default function Header(props: Props) { const { showHeaderShadow, totalItemsCount, currentCount, displayProgress } = props; return (
About Contribute { displayProgress && ( 0 ? false : true} /> { currentCount === totalItemsCount ? `🎉 Checklist complete! 🎉` : `${currentCount} of ${totalItemsCount} completed`} )}
); }