import {OverlayTrigger, Tooltip} from "react-bootstrap"; import React, {useState} from "react"; export function Notification({id, tip, content}) { const [show, setShow] = useState(true); const onClickHandler = (event) => { // prevent removing badge on touchables if (!event.target.classList.contains("options-badge")) setShow(false); }; return (
{content} {show ? {tip}} > : null}
) }