import * as React from "react"; import { Route, Link } from "react-router-dom"; type Props = { to: string; label: string; match?: string; activeOnlyWhenExact?: boolean; }; class PrimaryNavigationLink extends React.Component { renderLink = (route: any) => { const { to, label } = this.props; return (
  • {label}
  • ); }; render() { const { to, match, activeOnlyWhenExact } = this.props; const path = match ? match : to; return ; } } export default PrimaryNavigationLink;