import e from"prop-types";import t from"classnames";import{makeStyles as i,Typography as a}from"@material-ui/core";import r from"@material-ui/core/colors/blue";import{jsxs as s,Fragment as o,jsx as n}from"react/jsx-runtime";var c=i((function(e){return{item:{display:"inline-block"},firstItem:{marginRight:45},unit:{color:e.palette.grey[400],marginRight:5,display:"inline-block"},value:{color:r[300],display:"inline-block"}}})),m=function(e){var i=e.feedItem.context.daily_cost.data,r=i.cost,m=i.cumulative_cost,l=c();return s(o,{children:[s(a,{variant:"body2",className:t(l.item,l.firstItem),children:["Daily Cost:",n("br",{}),n(a,{component:"span",variant:"caption",className:l.unit,children:"$"}),n(a,{"data-testid":"".concat("costsActivity","_dailyCost"),component:"span",variant:"h6",className:l.value,children:Number.isFinite(r)?r.formatNumeral("0,0.00"):"N/A"})]}),s(a,{variant:"body2",className:l.item,children:["Cumulative Cost:",n("br",{}),n(a,{component:"span",variant:"caption",className:l.unit,children:"$"}),n(a,{"data-testid":"".concat("costsActivity","_cumulativeCost"),component:"span",variant:"h6",className:l.value,children:Number.isFinite(m)?m.formatNumeral("0,0.00"):"N/A"})]})]})};m.propTypes={feedItem:e.shape({context:e.shape({daily_cost:e.shape({data:e.shape({cost:e.number.isRequired,cumulative_cost:e.number.isRequired}).isRequired}).isRequired}).isRequired}).isRequired};export{m as default};
