MCPcopy Create free account
hub / github.com/microsoft/SandDance / Dialog

Function Dialog

docs/app/js/sanddance-app.js:263–280  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

261var _base = require("../base");
262var _language = require("../language");
263function Dialog(props) {
264 return (0, _base.base).react.createElement((0, _base.base).fluentUI.Dialog, Object.assign({}, props, {
265 dialogContentProps: Object.assign({
266 type: (0, _base.base).fluentUI.DialogType.normal,
267 title: props.title
268 }, props.dialogContentProps)
269 }), (0, _base.base).react.createElement("div", {
270 onKeyUp: (e)=>{
271 e.nativeEvent.stopImmediatePropagation();
272 }
273 }, props.children), (0, _base.base).react.createElement((0, _base.base).fluentUI.DialogFooter, null, props.buttons, (0, _base.base).react.createElement((0, _base.base).fluentUI.DefaultButton, {
274 iconProps: {
275 iconName: "Cancel"
276 },
277 onClick: props.onDismiss,
278 text: (0, _language.strings).buttonClose
279 })));
280}
281
282},{"../base":"b6Cy1","../language":"7qvdA","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"b6Cy1":[function(require,module,exports) {
283var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected