1 import PropTypes from 'prop-types';
2 import React from 'react';
3 import { Col, Row } from 'react-bootstrap';
4 import { useTranslation } from 'react-i18next';
6 const GuessingWinner = ({ winner }) => {
7 const { t } = useTranslation();
9 const classNames = ['guessing-game-winner', 'my-2', 'p-2', 'border', 'rounded'];
11 classNames.push('no-points');
14 return <div className={classNames.join(' ')}>
17 <div>{winner.uname}</div>
19 'twitchBot.guessingGame.winnerScore',
20 { count: winner.score, score: winner.score },
24 <div className="fs-3 text-end">{winner.guess}</div>
30 GuessingWinner.propTypes = {
31 winner: PropTypes.shape({
32 guess: PropTypes.string,
33 score: PropTypes.number,
34 uname: PropTypes.string,
38 export default GuessingWinner;