2023-12-02 14:21:05 +00:00
|
|
|
import * as React from "react";
|
2023-12-02 15:00:42 +00:00
|
|
|
import { RouterProvider, createBrowserRouter } from "react-router-dom";
|
2023-12-02 14:21:05 +00:00
|
|
|
import { Footer } from "./components/Footer";
|
2023-12-01 19:56:14 +00:00
|
|
|
|
2023-12-02 15:00:42 +00:00
|
|
|
const router = createBrowserRouter([
|
|
|
|
{
|
|
|
|
path: "/",
|
|
|
|
element: <Footer />, // Placeholder.
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "/nested",
|
|
|
|
element: <Footer />, // Placeholder.
|
|
|
|
},
|
|
|
|
]);
|
|
|
|
|
2023-12-01 19:56:14 +00:00
|
|
|
export default function App() {
|
|
|
|
return (
|
|
|
|
<div>
|
2023-12-02 15:00:42 +00:00
|
|
|
<main className="w-full flex-auto">
|
|
|
|
<RouterProvider router={router} />
|
|
|
|
</main>
|
2023-12-02 14:21:05 +00:00
|
|
|
<Footer />
|
2023-12-01 19:56:14 +00:00
|
|
|
</div>
|
2023-12-02 14:21:05 +00:00
|
|
|
);
|
2023-12-01 19:56:14 +00:00
|
|
|
}
|