import React, { Component } from 'react';
import Header from './Header';
import Footer from './Footer';
import './Index.scss';

export function HOC(Sub){
  return class II extends Component {
    render(){
      return(
      <div style={{height:"100%",overflow:"auto"}}>
        <Header {...this.props} {...this.state}/>
        <div className="homebody"><Sub {...this.props} {...this.state}/></div>
        <Footer {...this.props} {...this.state}/>
      </div>
      )
    }
  }
}