{"size": 363, "ext": "js", "max_stars_repo_path": "src/components/Magic/MagicContainer.js", "max_stars_repo_name": "kage23/weed-wizard", "max_stars_repo_stars_event_min_datetime": "2018-12-11T06:03:03.000Z", "max_stars_repo_stars_event_max_datetime": "2018-12-11T06:03:03.000Z", "max_issues_repo_path": "src/components/Magic/MagicContainer.js", "max_issues_repo_name": "kage23/weed-wizard", "max_issues_repo_issues_event_min_datetime": "2017-09-21T02:46:13.000Z", "max_issues_repo_issues_event_max_datetime": "2018-09-30T01:55:44.000Z", "max_forks_repo_path": "src/components/Magic/MagicContainer.js", "max_forks_repo_name": "kage23/weed-wizard", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 44, "max_forks_count": null, "avg_line_length": 22.6875, "max_line_length": 54, "alphanum_fraction": 0.6611570248}
import React from 'react';

import AppContext from '../../AppContext';
import MagicDisplay from './MagicDisplay';

const MagicContainer = () => (
  <AppContext.Consumer>
    {context => (
      <MagicDisplay
        player={ context.player }
        toggleSpell={ context.actions.toggleSpell } />
    )}
  </AppContext.Consumer>
);

export default MagicContainer;