import * as React from 'react'; import {connect, Dispatch} from 'react-redux'; import {ResState, State} from "../state"; import {ReactElement} from "react"; const styles = require('../main.scss'); interface Props { res: ResState; } const Home: React.SFC = ({ res }) => { const paths : string[] = res.paths; const links : ReactElement[] = []; paths.forEach(path => { const url = '/ruleapp/' + path; links.push(
  • {path}
  • ); }); return

    Ruleset paths:

      {links}
    ; }; const mapStateToProps = (state: State): Props => { return { res: state.res }; }; export default connect(mapStateToProps)(Home);