{"size": 1169, "ext": "js", "max_stars_repo_path": "frontend/src/components/ProductDetail/ProductDetail.js", "max_stars_repo_name": "RyanGC93/Sherwood-Group", "max_stars_repo_stars_event_min_datetime": "2021-01-22T20:39:42.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-27T02:42:13.000Z", "max_issues_repo_path": "frontend/src/components/ProductDetail/ProductDetail.js", "max_issues_repo_name": "RyanGC93/Sherwood-Group", "max_issues_repo_issues_event_min_datetime": "2021-04-02T04:23:37.000Z", "max_issues_repo_issues_event_max_datetime": "2021-04-02T04:24:34.000Z", "max_forks_repo_path": "frontend/src/components/ProductDetail/ProductDetail.js", "max_forks_repo_name": "RyanGC93/Sherwood-Group", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 8, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 53.1363636364, "max_line_length": 712, "alphanum_fraction": 0.6740804106}
import "./stockDetailPage.css"
import { useHistory, useParams } from "react-router-dom"
import {companyFinancials, realTimeStockQuotes, companyNews, companyDetails, stockQuotes} from '../../utils/newsApi.js'
import React, { useState, useEffect } from "react";



const ProductDetail= () => {
    const history = useHistory();
    const { stockTicker } = useParams();
    
    return (
        <>
            <div class="tradingview-widget-container"> <div id="tradingview_41615"></div> <div className="tradingview-widget-copyright"><a href="https://www.tradingview.com/symbols/NASDAQ-GME/" rel="noopener" target="_blank"><span class="blue-text">{stockTicker} Chart</span></a> by TradingView</div> <script type="text/javascript" src="https://s3.tradingview.com/tv.js"></script> <script type="text/javascript"> new TradingView.widget( {"width": 980, "height": 610, "symbol": "GME", "interval": "D", "timezone": "Etc/UTC", "theme": "light", "style": "1", "locale": "en", "toolbar_bg": "#f1f3f6", "enable_publishing": false, "allow_symbol_change": true, "container_id": "tradingview_41615" } ); </script> </div> 
        </>    
    )
    
}


export default ProductDetail
