import { createBrowserRouter, Navigate } from "react-router-dom"; import Layout from "./components/Layout"; import LandingPage from "./components/landingpage/landingpage"; import { LandingBase } from "./components/landingpage/landingpagebase"; import { MottoBase } from "./components/mottopage/mottobase"; import MottoSection from "./components/mottopage/MottoSection"; import AboutUsPage from "./components/aboutus"; const router = createBrowserRouter([ { path: '', element: , children: [ { index: true, element: , }, { path: 'home', element: , children: [ { index: true, element: , }, ], }, { path: 'aboutUs', element: , children: [ { index: true, element: , }, ], }, { path: 'motto', element: , children: [ { index: true, element: , }, ], } ] }, ]); export default router;