import { lazy, Suspense } from 'react';
import { createBrowserRouter, RouterProvider } from 'react-router-dom';
const Workspaces = lazy(() => import('./Workspaces'));
const Workspace = lazy(() => import('./Workspace'));
const RouteError = lazy(() => import('./RouteError'));
const router = createBrowserRouter([
{
path: '/',
errorElement: ,
children: [
{
path: '/',
element: ,
},
{
path: '/workspaces/:workspaceId',
element: ,
},
{
path: '/workspaces/:workspaceId/requests/:requestId',
element: ,
},
],
},
]);
export function AppRouter() {
return (
);
}