import React, { useContext, useEffect } from "react"; import { MyContext } from "../data/contextapi"; import Tooltip from "../../Tooltip"; const InfoIcon = ({ title, containerStyles }) => { const { bubbles } = useContext(MyContext); const bubbleText = bubbles?.find(({ name }) => name === title) ? bubbles.find(({ name }) => name === title).text : ""; return ( {title} ); }; export default InfoIcon;