import { Box, Flex, FormLabel, Switch } from "@chakra-ui/react"; import { t } from "@lingui/macro"; import AbilityIcon from "components/common/AbilityIcon"; import { useMyTheme } from "hooks/common"; import React from "react"; interface HeadOnlyToggleProps { ability: "OG" | "CB" | "DR"; active: boolean; setActive: () => void; } const HeadOnlyToggle: React.FC = ({ ability, active, setActive, }) => { const { themeColorShade } = useMyTheme(); return ( setActive()} mr="0.5em" mb={4} /> {active && ability === "OG" && ( +30{t`AP`}{" "} {["SSU", "RSU", "RES"].map((ability) => ( ))} )} {active && ability === "CB" && ( +10{t`AP`}{" "} {["ISM", "ISS", "REC", "RSU", "SSU", "SCU"].map((ability) => ( ))} )} {active && ability === "DR" && ( +10{t`AP`}{" "} {["RSU", "SSU", "RES"].map((ability) => ( ))} )} ); }; export default HeadOnlyToggle;