import React, { useState } from "react"; import { Flex, IconButton } from "theme-ui"; import ExpandMoreDiceIcon from "../../icons/ExpandMoreDiceIcon"; import DiceTray from "./dice/DiceTray"; function MapDice() { const [isExpanded, setIsExpanded] = useState(false); return ( setIsExpanded(!isExpanded)} sx={{ transform: `rotate(${isExpanded ? "0" : "180deg"})`, display: "block", backgroundColor: "overlay", borderRadius: "50%", }} m={2} > ); } export default MapDice;