Files
NODEDC_DESIGN_GUIDELINE/packages/ui-react/src/NavigationPanelState.ts
T

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);