import React from "react";
import { Link } from "react-router";
import styles from "../styles";
import Loading from "../components/Loading";
import MainContainer from "../containers/MainContainer";
import UserDetails from "../components/UserDetails";
import UserDetailsWrapper from "../components/UserDetailsWrapper";
const PropTypes = React.PropTypes;
const StartOver = () => {
return (
);
};
const Results = (props) => {
if (props.isLoading === true) {
return ;
}
if (props.scores[0] === props.scores[1]) {
return (
It's a tie
);
}
const winningIndex = props.scores[0] > props.scores[1] ? 0 : 1;
const losingIndex = winningIndex ? 0 : 1;
return (
Results
);
};
Results.propTypes = {
isLoading: PropTypes.bool.isRequired,
playerInfo: PropTypes.array.isRequired,
scores: PropTypes.array.isRequired
};
export default Results;