import Loading from 'components/Loading';
import React, { lazy, Suspense } from 'react';

const Home = lazy(() => import('./Home'));
const Admin = lazy(() => import('./Admin'));
export const HomeLazy = () => (
  <Suspense fallback={<Loading />}>
    <Home />
  </Suspense>
);

export const AdminLazy = () => (
  <Suspense fallback={<Loading />}>
    <Admin />
  </Suspense>
);
