import React, { Component } from "react"; import { IndexLink, Link} from "react-router"; export default class SidebarLayout extends Component { render () { const isActive = { discover: (this.props.location.pathname == "/discover") ? "active" : "", browse: (this.props.location.pathname == "/browse") ? "active" : "", artists: (this.props.location.pathname == "/artists") ? "active" : "", albums: (this.props.location.pathname == "/albums") ? "active" : "", songs: (this.props.location.pathname == "/songs") ? "active" : "", search: (this.props.location.pathname == "/search") ? "active" : "" }; return (

A mpache

{this.props.children}
); } }