"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PanelNonModalExample = void 0;
var React = require("react");
var Button_1 = require("@fluentui/react/lib-commonjs/Button");
var Panel_1 = require("@fluentui/react/lib-commonjs/Panel");
var react_hooks_1 = require("@fluentui/react-hooks");
var explanation = "This panel is non-modal: even when it's open, it allows interacting with content outside the panel.";
var PanelNonModalExample = function () {
    var _a = react_hooks_1.useBoolean(false), isOpen = _a[0], _b = _a[1], openPanel = _b.setTrue, dismissPanel = _b.setFalse;
    return (React.createElement("div", null,
        explanation,
        React.createElement("br", null),
        React.createElement("br", null),
        React.createElement(Button_1.DefaultButton, { text: "Open panel", onClick: openPanel }),
        React.createElement(Panel_1.Panel, { headerText: "Non-modal panel", 
            // this prop makes the panel non-modal
            isBlocking: false, isOpen: isOpen, onDismiss: dismissPanel, closeButtonAriaLabel: "Close" },
            React.createElement("p", null, explanation))));
};
exports.PanelNonModalExample = PanelNonModalExample;
//# sourceMappingURL=Panel.NonModal.Example.js.map