import React, { useEffect } from "react"; import Dashboard from "./Routes/Dashboard/Dashboard"; import Error from "./Routes/Error/Error"; import Products from "./Routes/Products/Products"; import Logs from "./Routes/Logs/Logs"; import Container from "./Components/Container/Container"; import { createBrowserRouter, RouterProvider } from "react-router-dom"; import Store from "./Plugins/Redux/Store/Store"; import { Provider } from "react-redux"; import Inventory from "./Routes/Inventory/Inventory"; import Login from "./Routes/Login/Login"; import Product from "./Routes/Product/Product"; import Activation from "./Routes/Activation/Activation"; import AddProduct from "./Routes/AddProduct/AddProduct"; const router = createBrowserRouter([ { path: "/", element: ( ), errorElement: ( ), }, { path: "/Products", element: ( ), }, { path: "/Inventory", element: ( ), }, { path: "/Logs", element: ( ), }, { path: "/Login", element: ( ), }, { path: "/Product/:id", element: ( ), }, { path: "/Activation/:uid/:token", element: ( ), }, { path: "/AddProduct", element: ( ), }, ]); export default function App() { return ( ); }