2023-12-08 05:20:55 +00:00
|
|
|
import React from 'react';
|
2023-12-11 14:35:34 +00:00
|
|
|
import { createBrowserRouter, RouterProvider } from 'react-router-dom';
|
|
|
|
|
|
|
|
import Dashboard from './pages/dashboard';
|
|
|
|
import { dashboardRoutes } from './pages/dashboard/routes';
|
|
|
|
|
|
|
|
const router = createBrowserRouter([
|
|
|
|
{
|
|
|
|
path: '/',
|
|
|
|
element: <Dashboard />,
|
|
|
|
children: dashboardRoutes,
|
|
|
|
},
|
|
|
|
]);
|
2023-12-08 05:20:55 +00:00
|
|
|
|
|
|
|
function App() {
|
2023-12-11 14:35:34 +00:00
|
|
|
return <RouterProvider router={router} />;
|
2023-12-08 05:20:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export default App;
|