Files
powerpoint-toolbox/node_modules/@fluentui/react-dialog/lib/components/Dialog/useDialogContextValues.js
T
2025-03-07 19:22:02 +01:00

23 lines
648 B
JavaScript

export function useDialogContextValues_unstable(state) {
const { modalType, open, dialogRef, dialogTitleId, isNestedDialog, inertTrapFocus, requestOpenChange, modalAttributes, triggerAttributes } = state;
/**
* This context is created with "@fluentui/react-context-selector",
* there is no sense to memoize it
*/ const dialog = {
open,
modalType,
dialogRef,
dialogTitleId,
isNestedDialog,
inertTrapFocus,
modalAttributes,
triggerAttributes,
requestOpenChange
};
const dialogSurface = false;
return {
dialog,
dialogSurface
};
}