import LoginLayout from "@/LoginLayout";
import Banners from "@/pages/Banners";
import Categories from "@/pages/Categories";
import Faq from "@/pages/Faq";
import HomePage from "@/pages/Home";
import Orders from "@/pages/Orders";
import PriceType from "@/pages/PriceType";
import Product from "@/pages/Product";
import Questionnaire from "@/pages/Questionnaire";
import Units from "@/pages/Units";
import Users from "@/pages/Users";
import routesConfig from "@/providers/routing/config";
import { Navigate, useRoutes } from "react-router-dom";
const AppRouter = () => {
const routes = useRoutes([
routesConfig,
{
path: "*",
element: ,
},
{
path: "/dashboard",
element: (
),
},
{
path: "/dashboard/products",
element: ,
},
{
path: "/dashboard/categories",
element: ,
},
{
path: "/dashboard/units",
element: ,
},
{
path: "/dashboard/banners",
element: ,
},
{
path: "/dashboard/orders",
element: ,
},
{
path: "/dashboard/users",
element: ,
},
{
path: "/dashboard/faq",
element: ,
},
{
path: "/dashboard/questionnaire",
element: ,
},
{
path: "/dashboard/price-type",
element: ,
},
]);
return routes;
};
export default AppRouter;