import { lazy, FC, Suspense } from "react";
import { Route, Routes, Navigate } from "react-router-dom";
import { MasterLayout } from "../../_digifi/layout/MasterLayout";
import TopBarProgress from "react-topbar-progress-indicator";
import { DashboardWrapper } from "../pages/dashboard/DashboardWrapper";
// import {MenuTestPage} from '../pages/MenuTestPage'
import { getCSSVariableValue } from "../../_digifi/assets/ts/_utils";
import { WithChildren } from "../../_digifi/helpers";
import HelpPage from "../modules/help/HelpPage";
// import BuilderPageWrapper from '../pages/layout-builder/BuilderPageWrapper'
const PrivateRoutes = () => {
// const WizardsPage = lazy(() => import('../modules/wizards/WizardsPage'))
// const AccountPage = lazy(() => import('../modules/accounts/AccountPage'))
// const WidgetsPage = lazy(() => import('../modules/widgets/WidgetsPage'))
// const ChatPage = lazy(() => import('../modules/apps/chat/ChatPage'))
const ProcessPage = lazy(() => import("../modules/process/ProcessPage"));
const UsersPage = lazy(
() => import("../modules/apps/user-management/UsersPage")
);
const EmployersPage = lazy(
() => import("../modules/employers/employers-list/UsersPage")
);
const ApproveRejectRoutes = lazy(
() => import("../modules/process/approve-reject-page/ApproveRejectRoutes")
);
return (
}>
{/* Redirect to Dashboard after success login/registartion */}
} />
{/* Pages */}
} />
{/* } /> */}
{/* } /> */}
{/* Lazy Modules */}
}
/>
}
/>
{/*
}
/> */}
{/*
}
/> */}
{/*
}
/> */}
{/*
}
/> */}
}
/>
}
/>
} />
{/* Page Not Found */}
} />
);
};
const SuspensedView: FC = ({ children }) => {
const baseColor = getCSSVariableValue("--bs-primary");
TopBarProgress.config({
barColors: {
"0": baseColor,
},
barThickness: 1,
shadowBlur: 5,
});
return }>{children};
};
export { PrivateRoutes };