import { AccumulatedEconomyTitleView } from './AccumulatedEconomyTitleView'

export default function AccumulatedEconomyTitle({value}: {value: string}) {
  return <AccumulatedEconomyTitleView>Economia Acumulada:<p>R${(parseFloat(value)*1000).toLocaleString('pt-br',{currency: 'BRL', minimumFractionDigits: 2, maximumFractionDigits: 2})}</p></AccumulatedEconomyTitleView>
}
