import t from"@babel/runtime/helpers/defineProperty";import{jsx as e}from"react/jsx-runtime";import l from"classnames";import o from"moment";import{TableCell as i,Typography as r}from"@material-ui/core";import{ColumnType as a}from"../../../../constants.js";import{PAGE_NAME as s}from"../types.js";import m from"../../components/OffsetWellsTableRow/OffsetWellsTableRow.module.css.js";var n=function(n){var c,f,d=n.data,p=n.borderStyle,v=n.columnsMap,u=n.lastCellColumn;return e(i,{"data-testid":"".concat(s,"_lastActive"),className:l(m.bodyCell,p,t({},m.lastCell,"lastActive"===u)),style:{minWidth:(null===(c=v.get(a.lastActive))||void 0===c?void 0:c.minWidth)||0,flex:(null===(f=v.get(a.lastActive))||void 0===f?void 0:f.flex)||0},children:e(r,{variant:"body2",className:m.cellData,children:d[a.lastActive]&&Number.isFinite(d[a.lastActive])?o.unix(d[a.lastActive]).format("MM/DD/YYYY"):"—"})})};export{n as LastActiveCell};
//# sourceMappingURL=LastActiveCell.js.map
