30 lines
980 B
TypeScript
30 lines
980 B
TypeScript
// Module ID: 4516
|
|
// Function ID: 39668
|
|
// Name: Dialog
|
|
// Dependencies: []
|
|
// Exports: Dialog
|
|
|
|
// Module 4516 (Dialog)
|
|
let closure_2 = importAll(dependencyMap[0]);
|
|
const StyleSheet = arg1(dependencyMap[1]).StyleSheet;
|
|
const jsx = arg1(dependencyMap[2]).jsx;
|
|
const result = arg1(dependencyMap[4]).fileFinishedImporting("design/components/Dialog/native/Dialog.native.tsx");
|
|
|
|
export const Dialog = function Dialog(dialogKey) {
|
|
let onDismiss;
|
|
let zIndex;
|
|
dialogKey = dialogKey.dialogKey;
|
|
let obj = {};
|
|
({ onDismiss, zIndex } = dialogKey);
|
|
Object.setPrototypeOf(null);
|
|
const merged = Object.assign(dialogKey, obj);
|
|
let id = closure_2.useId();
|
|
obj = { style: items, accessibilityViewIsModal: true, onAccessibilityEscape: onDismiss };
|
|
const items = [StyleSheet.absoluteFill, { zIndex }];
|
|
if (null != dialogKey) {
|
|
id = dialogKey;
|
|
}
|
|
obj.nativeID = id;
|
|
const merged1 = Object.assign(merged);
|
|
return jsx(arg1(dependencyMap[3]).AccessibilityView, obj);
|
|
};
|