import { Box, Flex, NumberDecrementStepper, NumberIncrementStepper, NumberInput, NumberInputField, NumberInputStepper, Text, } from "@chakra-ui/react"; import { t, Trans } from "@lingui/macro"; import AbilityIcon from "components/common/AbilityIcon"; import { CSSVariables } from "utils/CSSVariables"; interface LdeSliderProps { value: number; setValue: (value: number) => void; } const LdeSlider: React.FC = ({ value, setValue }) => { const bonusAp = Math.floor((24 / 21) * value); const getLdeEffect = () => { if (value === 21) return t`Enemy has reached the 30 point mark OR there is 30 seconds or less on the clock OR it is overtime`; const pointMark = 51 - value; if (value > 0) return Enemy has reached the {pointMark} point mark; return t`Enemy has not reached the 50 point mark or there is more than 30 seconds on the clock`; }; return ( {t`Intensity`} setValue(value)} > {value > 0 && ( +{bonusAp} {t`AP`}{" "} {["ISM", "ISS", "REC"].map((ability) => ( ))} )} {getLdeEffect()} ); }; export default LdeSlider;