[WEB-5573] refactor: app rail enhancements (#8239)
* chore: app rail context added * chore: dock/undock app rail implementation * chore: refactor * chore: code refactor * chore: code refactor
This commit is contained in:
parent
fe867135c4
commit
1090b3e938
17 changed files with 162 additions and 22 deletions
17
apps/web/ce/hooks/app-rail/provider.tsx
Normal file
17
apps/web/ce/hooks/app-rail/provider.tsx
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
"use client";
|
||||
|
||||
import React from "react";
|
||||
import { observer } from "mobx-react";
|
||||
import { AppRailVisibilityProvider as CoreProvider } from "@/lib/app-rail";
|
||||
|
||||
interface AppRailVisibilityProviderProps {
|
||||
children: React.ReactNode;
|
||||
}
|
||||
|
||||
/**
|
||||
* CE AppRailVisibilityProvider
|
||||
* Wraps core provider with isEnabled hardcoded to false
|
||||
*/
|
||||
export const AppRailVisibilityProvider = observer(({ children }: AppRailVisibilityProviderProps) => (
|
||||
<CoreProvider isEnabled={false}>{children}</CoreProvider>
|
||||
));
|
||||
Loading…
Add table
Add a link
Reference in a new issue