import type { FC } from 'react'; import { bannerPages } from '../../routes'; import cs from 'classnames'; import { NavLink } from 'react-router-dom'; import { Covid19, IncreaseInDeaths } from '../../urls'; import * as styles from './Menu.css'; export interface MenuItemsProps { collapse: () => void; } export const MenuItems: FC = ({ collapse }) => ( <> {bannerPages.map((page) => (
  • {page.heading}
  • ))} ); export const MobileMenuItems: FC = ({ collapse }) => { return (
  • {[ { path: Covid19, heading: 'COVID-19 Daily increase in Scottish deaths', }, { path: IncreaseInDeaths, heading: 'COVID-19 Daily increase in World deaths', }, ].map((page) => { return (
  • {page.heading}
  • ); })}
    ); };