import React, { useState } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { Icon } from '@ohif/ui'; const MeasurementItem = ({ id, index, label, displayText, isActive, onClick, onEdit }) => { const [isHovering, setIsHovering] = useState(false); const onEditHandler = event => { event.stopPropagation(); onEdit({ id, isActive, event }); }; const onClickHandler = event => onClick({ id, isActive, event }); const onMouseEnter = () => setIsHovering(true); const onMouseLeave = () => setIsHovering(false); return (