define(["require", "exports", "react", "@fluentui/react/lib/Button", "@fluentui/react/lib/Panel", "@fluentui/react-hooks"], function (require, exports, React, Button_1, Panel_1, react_hooks_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.PanelLightDismissExample = void 0;
    var explanation = 'This panel uses "light dismiss" behavior: it can be closed by clicking or tapping ' +
        'the area outside the panel (or using the close button as usual).';
    var PanelLightDismissExample = 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, { isLightDismiss: true, isOpen: isOpen, onDismiss: dismissPanel, closeButtonAriaLabel: "Close", headerText: "Light dismiss panel" },
                React.createElement("p", null, explanation))));
    };
    exports.PanelLightDismissExample = PanelLightDismissExample;
});
//# sourceMappingURL=Panel.LightDismiss.Example.js.map