text: import FuseUtils from '@fuse/utils';
  import appsConfigs from 'app/main/apps/appsConfigs';
  import authRoleExamplesConfigs from 'app/main/auth/authRoleExamplesConfigs';
  import CallbackConfig from 'app/main/callback/CallbackConfig';
  import DocumentationConfig from 'app/main/documentation/DocumentationConfig';
  import LoginConfig from 'app/main/login/LoginConfig';
  import LogoutConfig from 'app/main/logout/LogoutConfig';
  import pagesConfigs from 'app/main/pages/pagesConfigs';
  import RegisterConfig from 'app/main/register/RegisterConfig';
  import UserInterfaceConfig from 'app/main/user-interface/UserInterfaceConfig';
  import FuseLoading from '@fuse/core/FuseLoading';
  import { Navigate } from 'react-router-dom';
  
  const routeConfigs = [
    ...appsConfigs,
    ...pagesConfigs,
    ...authRoleExamplesConfigs,
    UserInterfaceConfig,
    DocumentationConfig,
    LogoutConfig,
    LoginConfig,
    RegisterConfig,
    LogoutConfig,
    CallbackConfig,
  ];
  
  const routes = [
    // if you want to make whole app auth protected by default change defaultAuth for example:
    // ...FuseUtils.generateRoutesFromConfigs(routeConfigs, ['admin','staff','user']),
    // The individual route configs which has auth option won't be overridden.
    ...FuseUtils.generateRoutesFromConfigs(routeConfigs, null),
    {
      path: '/',
      element: <Navigate to="apps/dashboards/analytics" />,
    },
    {
      path: 'loading',
      element: <FuseLoading />,
    },
    {
      path: '*',
      element: <Navigate to="pages/errors/error-404" />,
    },
  ];
  
  export default routes;
  