<reponame>TedtheDev/Crypto-Calculator
import React from 'react';
import styled from 'styled-components';

const TotalAmountOwnedDiv = styled.div`
    grid-area: overallPortfolioStats;
`;

const TotalAmountOwned = (props) => {
    return (
        <TotalAmountOwnedDiv>Total Amount Owned: {Math.abs(props.total).toLocaleString('en', { style: 'currency', currency: 'USD'})}</TotalAmountOwnedDiv>
    )
}

export default TotalAmountOwned;