import { FunctionComponent } from "react"; import { Group, List, Popover, Stack, Text } from "@mantine/core"; import { useHover } from "@mantine/hooks"; import { faCheck, faCheckCircle, faExclamationCircle, faListCheck, faTimes, } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { BuildKey } from "@/utilities"; interface StateIconProps { matches: string[]; dont: string[]; isHistory: boolean; } const StateIcon: FunctionComponent = ({ matches, dont, isHistory, }) => { const hasIssues = dont.length > 0; const { hovered, ref } = useHover(); const PopoverTarget: FunctionComponent = () => { if (isHistory) { return ; } else { return ( ); } }; return ( {matches.map((v, idx) => ( {v} ))} {dont.map((v, idx) => ( {v} ))} ); }; export default StateIcon;