import{jsx as e}from"react/jsx-runtime";import{memo as r}from"react";import{Typography as t}from"@material-ui/core";import i from"./MetricCell.module.css.js";import{Skeleton as o}from"../../../../../../componentsV2/Skeleton/Skeleton.js";import{convertValue as a}from"../../../../../../utils/index.js";var l=r((function(r){var l=r.value,n=r.wellId,m=r.loadingWellIds,c=r.metric;if(!c)return e(t,{variant:"body2",className:i.cellData,children:"—"});if(m.has(n)&&void 0===l)return e(o,{type:"text",width:50,height:16});if(Number.isFinite(l)||l&&"Null"!==l){var s=function(e,r){return"number"!=typeof e?e:r.customConvert?r.customConvert(e,{precision:r.precision}):r.unitType&&r.from?a(e,r.unitType,r.from,r.to):e}(l,c);return e(t,{variant:"body2",className:i.cellData,children:s})}return e(t,{variant:"body2",className:i.cellData,children:"—"})}));l.displayName="MetricCell";export{l as MetricCell};
//# sourceMappingURL=MetricCell.js.map
