MCPcopy Create free account
hub / github.com/module-federation/module-federation-examples / Shell

Function Shell

shared-routing/shell/src/Shell.js:28–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26}
27
28export default function Shell() {
29 const drawer = useDrawer();
30
31 return (
32 <ServiceProvider>
33 <BrowserRouter>
34 <Viewport>
35 <Box display="flex" flex={1}>
36 <AppBar drawer={drawer} />
37 <AppDrawer drawer={drawer} />
38 <React.Suspense fallback={'Loading'}>
39 <Routes>
40 <Route path="dashboard/*" element={<DashboardService />} />
41 <Route path="orders/*" element={<OrderService />} />
42 <Route path="profile/*" element={<ProfilePage />} />
43 <Route path="*" element={<Navigate to="/dashboard" replace />} />
44 </Routes>
45 </React.Suspense>
46 </Box>
47 </Viewport>
48 </BrowserRouter>
49 </ServiceProvider>
50 );
51}

Callers

nothing calls this directly

Calls 1

useDrawerFunction · 0.85

Tested by

no test coverage detected