import React from 'react' import { GiTwoCoins } from 'react-icons/gi' import { AiOutlineClose } from 'react-icons/ai' import { useSelector, useDispatch } from 'react-redux' import axios from 'axios'; import { setPoker } from '../../../redux/reducers/styleSlice'; const RaiseModal = () => { const dispatch = useDispatch(); const playerState = useSelector(state => state.player); const styleState = useSelector(state => state.style); function chooseBet(e) { dispatch(setPoker({ ...styleState.poker, inputControls: { ...styleState.poker.inputControls, raise: { ...styleState.poker.inputControls.bet, chosenCredits: parseInt(e.target.value), } } })); } function raise() { axios.get(`/api/poker?action=game_action&session_id=${localStorage.CAESSINO_SESSION_ID}&specificAction=raise&betAmount=${styleState.poker.inputControls.raise.chosenCredits}`); closeModal(); } function closeModal() { dispatch(setPoker({ ...styleState.poker, displays: { ...styleState.poker.displays, raiseModal: false, }, })) } return (
Please select the amount you will raise.