import React from 'react';
import { NextPage } from 'next';

import Navbar from '../containers/Navbar';
import Sidebar from '../containers/Sidebar';
import Toolbar from '../containers/Toolbar';
import Placeholder from '../containers/Placeholder';
import PdfViewer from '../containers/PdfViewer';
import AutoSave from '../containers/AutoSave';

const index: NextPage = () => (
  <>
    <Navbar />
    <Sidebar />
    <Toolbar />
    <Placeholder />
    <PdfViewer />
    <AutoSave />
  </>
);

index.getInitialProps = async (): Promise<any> => ({
  namespacesRequired: ['common'],
});

export default index;
