//@flow import React from "react"; import { Link } from "react-router-dom"; import injectSheet from "react-jss"; type Props = { revision: string, path: string, baseUrl: string, classes: any }; const styles = { noMargin: { margin: "0" } }; class Breadcrumb extends React.Component { renderPath() { const { revision, path, baseUrl } = this.props; if (path) { const paths = path.split("/"); const map = paths.map((path, index) => { const currPath = paths.slice(0, index + 1).join("/"); if (paths.length - 1 === index) { return (
  • {path}
  • ); } return (
  • {path}
  • ); }); return map; } return
  • ; } render() { const { classes } = this.props; return ( <>
    ); } } export default injectSheet(styles)(Breadcrumb);