8 lines
250 B
TypeScript
8 lines
250 B
TypeScript
import {createContext} from "react";
|
|
|
|
/** The shell owns rail width and panel presentation as one state. */
|
|
export const NavigationPanelState = createContext<{
|
|
collapsed: boolean;
|
|
onCollapsedChange: (collapsed: boolean) => void;
|
|
} | null>(null);
|