import React, { Component } from 'react'; import { Link } from "react-router-dom"; import './css/Menu.css'; export default class Menu extends Component { render() { const { children } = this.props return ( ) } } export function MenuLink({ icon, children, tagType, to, onClick }) { const isSelected = window.location.pathname === to const className = isSelected ? "selected" : "not-selected" const textClass = isSelected ? "color-primary" : `color-tag-${tagType||"none"}` const body = (
{icon}
{children}
) if (to == null) { return body } else { return {body} } } export function MenuGap() { return
} export function MenuHeader({children}) { return
{children}
} export function HeadMenuLink({to, children}) { const className = (window.location.pathname.startsWith(to) ? "color-primary" : "color-menu") return {children} } export function MenuBlurb({children}) { return
{children}
}