UNPKG

@launchmenu/core

Version:

An environment for visual keyboard controlled applets

15 lines 762 B
import { IDataHook } from "model-react"; import { IIdentifiedItem } from "../../_types/IIdentifiedItem"; import { IViewStackItem } from "../../uiLayers/_types/IViewStackItem"; /** * Checks whether the pane for a viewstack should be visible * @param stack The stack of items for which to check whether the pane should be visible * @param defaultTransitionDuration The duration of the open/close transition * @returns WHether the pane should be open, and possible transition durations */ export declare function usePaneIsVisible(stack: (hook?: IDataHook) => IIdentifiedItem<IViewStackItem>[], defaultTransitionDuration?: number): { open: boolean; prevOpen: boolean; duration: number; }; //# sourceMappingURL=usePaneIsVisible.d.ts.map