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';
|
|
|
|
|
2023-12-18 11:28:17 +00:00
|
|
|
import Home from './pages/index';
|
2023-12-12 12:24:20 +00:00
|
|
|
import { homeRoutes } from './pages/routes';
|
2023-12-11 14:35:34 +00:00
|
|
|
|
|
|
|
const router = createBrowserRouter([
|
|
|
|
{
|
|
|
|
path: '/',
|
2023-12-12 12:24:20 +00:00
|
|
|
element: <Home />,
|
|
|
|
children: homeRoutes,
|
2023-12-11 14:35:34 +00:00
|
|
|
},
|
|
|
|
]);
|
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;
|