import { Route, createBrowserRouter, createRoutesFromElements, RouterProvider, redirect, } from "react-router-dom"; import MainLayout from "./MainLayout"; import Home from "./Home"; import DocsLayout from "./DocsLayout"; import ErrorBoundary from "./ErrorHandler"; import DocsIntroduction from "./docs/docs/introduction.mdx"; import DocsInstallation from "./docs/docs/installation.mdx"; const router = createBrowserRouter( createRoutesFromElements( } errorElement={}> } /> }> } /> } /> redirect("/docs/components/button")} /> ) ); function App() { return ( <> ); } export default App;