import {Button, Card, CardBody, Col, Collapse, Row, Table} from 'reactstrap'; import {Match} from './Match'; import React, {Component} from 'react'; export default class GroupStage extends Component { constructor(props) { super(props); this.state = {showMatches: this.props.showMatches}; this.toggleShowMatches = this.toggleShowMatches.bind(this); } toggleShowMatches() { this.setState({showMatches: !this.state.showMatches}); } render() { return (

Gruppenphase

{this.props.groups.map(group => )}
); } } function ShowMatchesToggleButton(props) { return (); } function Group(props) { return (

Gruppe {props.group.id + 1}

{props.group.matches.map((match => ( )))}
); } function GroupScoresTable(props) { return ( {props.scores.map(groupScore => )}
Team Punkte erzielt kassiert
); } function GroupScoresTableRow(props) { return ( {props.score.team.name} {props.score.group_points} {props.score.received_points} {props.score.scored_points} ); }