{"size": 552, "ext": "js", "max_stars_repo_path": "frontend-react/src/Components/Coin/Coin.js", "max_stars_repo_name": "EternityProjects-real/Ethereal", "max_stars_repo_stars_event_min_datetime": "2021-05-30T04:16:48.000Z", "max_stars_repo_stars_event_max_datetime": "2021-05-30T04:16:48.000Z", "max_issues_repo_path": "frontend-react/src/Components/Coin/Coin.js", "max_issues_repo_name": "EternityProjects-real/Ethereal", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "frontend-react/src/Components/Coin/Coin.js", "max_forks_repo_name": "EternityProjects-real/Ethereal", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.2307692308, "max_line_length": 60, "alphanum_fraction": 0.4420289855}
import React from 'react'
import './Coin.scss'

const Coin = ({name, img,symbol,price,Cap,priceChange}) => {
    return (
        <div>
        <table>
        <tr>
        <th><img src={img} alt='Logo' /></th>
        <th>{name}</th>
        <th>{symbol}</th>
        <th>₹{price}</th>
        
        {priceChange<0?(
           <th>{priceChange.toFixed(2)}%</th>
        ):(
           <th>{priceChange.toFixed(2)}%</th>
        )}
        <th>₹{Cap.toLocaleString()}</th>
        </tr>
        </table>
        </div>
    )
}

export default Coin;