\n {totalOdd !== undefined && (\n
\n
\n :\n
\n
\n {withPlus && 'x'}\n {totalOdd}\n
\n
\n )}\n {!isFreebetSelected && (\n
\n
\n :\n
\n
\n {floor(totalStake, 2)}\n \n
\n
\n )}\n\n {props.children}\n\n
\n
\n :\n
\n
\n {isExceededLimits\n ? maxPotentialWin\n : floor(totalPotentialWin, 2)}\n \n
\n
\n\n
\n
\n );\n};\n\nexport default TotalRow;\n","import { useCallback, useContext, useMemo } from 'react';\nimport { useSelector } from 'react-redux';\nimport betslip from '@gin-betting/betslip';\nimport { App, GQL } from '@gin-betting/core';\nimport restrictions from '@gin-betting/restrictions';\nimport { createStructuredSelector } from 'reselect';\n\nimport { Modules, useAsyncModule } from 'async-modules';\nimport ui from 'modules/ui';\nimport type { State } from 'types';\nimport { formatDecimalOdd } from 'utils';\nimport {\n useChangeStake,\n useExpressSystemErrors,\n usePlaceBet,\n} from '../../../hooks';\nimport { RestrictionsContext } from '../../../restrictions';\nimport { makeSelectIsFreebet } from '../../../selectors';\n\nconst {\n selectors: { selectBetslipBetWithStatus, selectBetslipBetTotals },\n} = betslip;\nconst {\n selectors: { selectOddFormat },\n} = ui;\n\nconst {\n selectors: { selectLowerMaxBetBetslipBet },\n} = restrictions;\n\ntype Output = {\n changeStakeHandler: (stake: string) => void;\n toggleFreeBetHandler: (amount: string | null) => void;\n totals: ReturnType