import React, {ReactNode} from "react"; import LocaleContext from "../LocaleContext"; import KadiCell from "./KadiCell"; import {Icon} from "semantic-ui-react"; import {CellScores} from "./KadiBoard"; import {FieldType} from "../../../shared/rulesets"; interface KadiGrandTotalRowProps { showResults: boolean; scores: CellScores; toggleShowResults(): void; } const KadiGrandTotalRow: React.FunctionComponent = ({ showResults, toggleShowResults, scores}) => { const cells: ReactNode[] = []; const Locale = React.useContext(LocaleContext).strings; for (const playerId in scores) { cells.push(( {}} /> )); } return ( {Locale.rowLabels.globalTotal} {cells} ); }; export default KadiGrandTotalRow;