import { lazy } from 'react';
import { Redirect } from 'react-router-dom';
import AdminLayout from 'layouts/AdminLayout';
import { BASE_URL } from 'config/constant';
// -----------------------|| Routes ||-----------------------//
component: lazy(() => import('../views/errors/NotFound404'))
path: '/dashboard/sales',
component: lazy(() => import('../views/dashboard/DashSales'))
path: '/dashboard/analytics',
component: lazy(() => import('../views/dashboard/DashAnalytics'))
component: () => <Redirect to={BASE_URL} />