{"size": 1174, "ext": "js", "max_stars_repo_path": "ass4b-react/js/dist/components/previous-reports.js", "max_stars_repo_name": "SceptreData/DMIT2008_AdvancedJavascript", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "ass4b-react/js/dist/components/previous-reports.js", "max_issues_repo_name": "SceptreData/DMIT2008_AdvancedJavascript", "max_issues_repo_issues_event_min_datetime": "2021-05-08T07:17:28.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-13T18:22:01.000Z", "max_forks_repo_path": "ass4b-react/js/dist/components/previous-reports.js", "max_forks_repo_name": "SceptreData/DMIT2008_AdvancedJavascript", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 17, "max_forks_count": null, "avg_line_length": 26.0888888889, "max_line_length": 133, "alphanum_fraction": 0.604770017}
var _jsxFileName = "/Users/davidbergeron/projects/edu/DMIT2008_AdvancedJavascript/ass4b-react/js/src/components/previous-reports.js";

var PreviousReports = function PreviousReports(_ref) {
  var state = _ref.state;
  var prevStocks = state.map(function (stock) {
    return React.createElement("li", {
      key: stock.symbol,
      __source: {
        fileName: _jsxFileName,
        lineNumber: 3
      },
      __self: this
    }, React.createElement("h4", {
      __source: {
        fileName: _jsxFileName,
        lineNumber: 4
      },
      __self: this
    }, stock.symbol), React.createElement("div", {
      className: "prev-price",
      __source: {
        fileName: _jsxFileName,
        lineNumber: 5
      },
      __self: this
    }, stock.price), React.createElement("div", {
      className: "prev-detail",
      __source: {
        fileName: _jsxFileName,
        lineNumber: 6
      },
      __self: this
    }, stock.date));
  });
  if (prevStocks.length == 0) return null;
  return React.createElement("ul", {
    __source: {
      fileName: _jsxFileName,
      lineNumber: 12
    },
    __self: this
  }, prevStocks);
};

export { PreviousReports };