import * as React from 'react';
import { DefaultButton } from '@fluentui/react/lib/Button';
import { Panel } from '@fluentui/react/lib/Panel';
import { useBoolean } from '@fluentui/react-hooks';
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).';
export var PanelLightDismissExample = function () {
    var _a = 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(DefaultButton, { text: "Open panel", onClick: openPanel }),
        React.createElement(Panel, { isLightDismiss: true, isOpen: isOpen, onDismiss: dismissPanel, closeButtonAriaLabel: "Close", headerText: "Light dismiss panel" },
            React.createElement("p", null, explanation))));
};
//# sourceMappingURL=Panel.LightDismiss.Example.js.map