import e from"prop-types";import{Tooltip as o}from"@material-ui/core";import i from"@material-ui/icons/Info";import{ViewType as r,LEAVE_TOUCH_DELAY as t}from"../../constants.js";import m from"./CustomInfoIcon.module.css.js";import{jsx as s}from"react/jsx-runtime";function l(e){var l=e.viewType,n=e.isWDUser;return s(o,{title:"View only mode. To edit offsets, use ".concat(n?"Offset Well Selection app.":"Wellhub."),enterTouchDelay:l===r.mobile&&0,leaveTouchDelay:l===r.mobile&&t,placement:l===r.mobile?"":"right",children:s("div",{className:m.infoWrapper,children:s(i,{className:m.infoIcon})})})}l.propTypes={viewType:e.string.isRequired};export{l as CustomInfoIcon};
