import * as React from "react"; import { Link } from "react-router-dom"; import Grid from "@material-ui/core/Grid"; import Typography from "@material-ui/core/Typography"; import Button from "@material-ui/core/Button"; import Paper from "@material-ui/core/Paper"; import Scoreboard from "../components/scoreboard"; import SummaryTable from "../components/SummaryTable"; import { ILevel } from "../models/level"; import { ILearner } from "../models/learner"; import { IReviewMetadata } from "../models/review"; interface IProps { nextLevel: () => ILevel; getLastReview: () => IReviewMetadata; getTopTen: () => ILearner[]; } export default class Dashboard extends React.Component { render() { const small = window.matchMedia("(max-width: 700px)").matches; const direction = small ? "column" : "row"; const level = this.props.nextLevel(); return
{`Level ${level.level}`} {level.name}
{level.desc}
Rangliste: Top 10 Letzte Wiederholung
; } };