You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
SGPT/src/shared/providers/RouterProviderComponent.tsx

27 lines
596 B

2 years ago
import { createBrowserRouter, RouterProvider } from "react-router-dom";
2 years ago
import Animated from "../../pages/Animated";
2 years ago
import Home from "../../pages/Home";
import HomeLayout from "../components/layouts/HomeLayout";
const router = createBrowserRouter([
{
path: "/",
element: <HomeLayout />,
2 years ago
children: [
{
path: "animated",
2 years ago
element: <Animated />,
},
{
path: "",
element: <Home />,
},
2 years ago
],
2 years ago
},
]);
const RouterProviderComponent = () => {
return <RouterProvider router={router} />;
};
export default RouterProviderComponent;