File size: 341 Bytes
494eeb9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
function DiceGame({ balance, onGameEnd }) {
 // Existing code...

 return (
    <div>
      <button
        onClick={rollDice}
        className="my-2 px-4 py-2 bg-[#facc15] rounded"
      >
        Roll
      </button>
      <BalanceDisplay balance={balance} />
      <p>Last Roll Result: {roll}</p>
    </div>
 )
}

export default DiceGame