index.tsx 877 B

1234567891011121314151617181920212223242526272829303132333435
  1. import React, { useEffect } from 'react';
  2. import { NextPage } from 'next';
  3. import { useTranslation } from 'react-i18next';
  4. import Navbar from '../containers/Navbar';
  5. import Sidebar from '../containers/Sidebar';
  6. import Toolbar from '../containers/Toolbar';
  7. import Placeholder from '../containers/Placeholder';
  8. import PdfViewer from '../containers/PdfViewer';
  9. import AutoSave from '../containers/AutoSave';
  10. import Loading from '../containers/Loading';
  11. import Embed from '../components/Embed';
  12. const index: NextPage = () => {
  13. const { i18n } = useTranslation('', { useSuspense: false });
  14. useEffect(() => {
  15. i18n.changeLanguage(window.navigator.language);
  16. }, []);
  17. return (
  18. <>
  19. <Navbar />
  20. <Sidebar />
  21. <Toolbar />
  22. <Placeholder />
  23. <PdfViewer />
  24. <AutoSave />
  25. <Loading />
  26. <Embed />
  27. </>
  28. );
  29. };
  30. export default index;