{"size": 526, "ext": "js", "max_stars_repo_path": "resources/js/components/Content.js", "max_stars_repo_name": "kwakjuhun/laravel-react_project", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "resources/js/components/Content.js", "max_issues_repo_name": "kwakjuhun/laravel-react_project", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "resources/js/components/Content.js", "max_forks_repo_name": "kwakjuhun/laravel-react_project", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.04, "max_line_length": 42, "alphanum_fraction": 0.6121673004}
import React, { Component } from 'react';
import Board from './contents/Board'
import Mainpage from './contents/Mainpage'
import './contents/contents.css'

class Content extends Component{
  getSelectedContent(){
    var selected = this.props.data;
    if(selected == 'main'){
      return <Mainpage></Mainpage>
    }
    else if(selected == 0){
      return <Board></Board>
    }
  }
  render(){     
    return(
      <div id='content'>
          {this.getSelectedContent()}
      </div>
    )
  }
}

export default Content;