import React from 'react';
import ReactDOM from 'react-dom';
import { Benzin, ContentSection } from 'react-benzin';
import { Paper } from '@material-ui/core';
import { makeStyles } from '@material-ui/core/styles';
import BsuFantomSection from './containers/BsuFantomSection/BsuFantomSection';
import { AuthProvider } from './hooks/useAuth';

const useStyles = makeStyles(theme => ({
  root: {
    [theme.breakpoints.up('md')]: {
      margin: theme.spacing(4)
    },
    padding: theme.spacing(2),
    minHeight: theme.spacing(60)
  }
}));


const App: React.FC = () => {
  const classes = useStyles();

  return (
    <AuthProvider>
      <Benzin>
        <Paper className={classes.root}>
          <ContentSection sectionName="famcs-kit">
            <BsuFantomSection />
          </ContentSection>
        </Paper>
      </Benzin>
    </AuthProvider>
  );
};


ReactDOM.render(<App />, document.getElementById('root'));

