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 = (