| 1 | import { createContext, use } from "react"; |
| 2 | import type { SharedValue } from "react-native-reanimated"; |
| 3 | |
| 4 | // Floating controls follow the visible pane while the expensive navigator/feed |
| 5 | // stays laid out at its settled width during sidebar and inspector transitions. |
| 6 | export const WorkspaceContentWidthContext = createContext<SharedValue<number> | null>(null); |
| 7 | |
| 8 | export function useWorkspaceContentWidth() { |
| 9 | return use(WorkspaceContentWidthContext); |
| 10 | } |