import{jsx as t}from"react/jsx-runtime";import{useMemo as e}from"react";import l from"classnames";import r from"./BoxSelectionOverlay.module.css.js";var a=function(a){var i=a.startPoint,n=a.endPoint,o=a.wellsCount,s=a.isSatellite,m=void 0!==s&&s,c=e((function(){return i&&n?{left:Math.min(i.x,n.x),top:Math.min(i.y,n.y),width:Math.abs(n.x-i.x),height:Math.abs(n.y-i.y)}:null}),[i,n]);if(!c)return null;var u=1===o?"1 well":"".concat(o," wells");return t("div",{className:l(r.boxOverlay,m&&r.satellite),style:c,children:o>0&&t("div",{className:l(r.countBadge,m&&r.satellite),children:u})})};export{a as BoxSelectionOverlay};
//# sourceMappingURL=BoxSelectionOverlay.js.map
