@ansible/ansible-ui-framework
Version:
A framework for building applications using PatternFly.
16 lines (15 loc) • 521 B
TypeScript
import { ReactNode } from 'react';
export declare function useIsPageDialog(): boolean;
export declare function PageDialogProvider(props: {
children: ReactNode;
}): import("react/jsx-runtime").JSX.Element;
export declare function usePageDialogs(): {
dialogs: ReactNode[];
clearDialogs: () => void;
pushDialog: (_dialog: ReactNode) => void;
popDialog: () => void;
};
export declare function usePageDialog(): [
dialog: ReactNode | undefined,
setDialog: (dialog: ReactNode | undefined) => void
];