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