import * as React from "react"; import { v4 as uuidv4 } from "uuid"; import { Tooltip } from "~/components/Tooltip"; import { useCharacterTheme } from "~/contexts/CharacterTheme"; import { DarkAttunementSvg, GrayAttunementSvg } from "../../Svg"; interface SvgInjectedProps { className?: string; } interface Props { className?: string; showTooltip?: boolean; } const AttunementIcon: React.FunctionComponent = ({ className = "", showTooltip = true, }) => { const { isDarkMode } = useCharacterTheme(); let classNames: Array = [className, "ddbc-attunement-icon"]; let SvgIcon: React.ComponentType = isDarkMode ? GrayAttunementSvg : DarkAttunementSvg; const tooltipId = `attunmentIcon-${uuidv4()}`; return ( <> {showTooltip && } ); }; export default AttunementIcon;