import * as React from "react";
import * as ReactDOM from "react-dom/client";
import { createBrowserRouter, RouterProvider } from "react-router-dom";
import "./index.css";
import Root, {
loader as rootLoader,
action as rootAction,
} from "./routes/root";
import ErrorPage from "./error-page";
import Contact, {
loader as contactLoader,
action as contactAction,
} from "./routes/contact";
import EditContact, { action as editAction } from "./routes/edit";
import { action as destroyAction } from "./routes/destroy";
import Index from "./routes";
import { AuthProvider } from "./providers/AuthProvider";
const router = createBrowserRouter([
{
path: "/",
element: