Skip to content
Source
Sign inSign up

workspace-presentation-context.tsx

8 lines452 Bytes

1import { createContext, type ReactElement, type ReactNode } from "react";
2​
3/** Android's native presentation stack surrounds all workspace columns. */
4export const WorkspacePresentationHostContext = createContext(false);
5/** Lays out the workspace columns around the navigator's content and its sidebar route. */
6export const WorkspaceColumnsRendererContext = createContext<
7 ((content: ReactNode, sidebar: ReactNode) => ReactElement) | null
8>(null);