import React from "react"; import Anchor from "../Anchor"; import "./AdminSidebarLink.scss"; export interface AdminSidebarLinkProps { to: string; path: string; id?: string; } export interface AdminSidebarLinkState { } class AdminSidebarLink extends React.Component { render() { const { to, path, children, id } = this.props; const activeClass = to === path ? "active" : ""; return ( {children} ); } } export default AdminSidebarLink;