"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PanelBasicExample = 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 PanelBasicExample = 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,
        React.createElement(Button_1.DefaultButton, { text: "Open panel", onClick: openPanel }),
        React.createElement(Panel_1.Panel, { headerText: "Sample panel", isOpen: isOpen, onDismiss: dismissPanel, 
            // You MUST provide this prop! Otherwise screen readers will just say "button" with no label.
            closeButtonAriaLabel: "Close" },
            React.createElement("p", null, "Content goes here."))));
};
exports.PanelBasicExample = PanelBasicExample;
//# sourceMappingURL=Panel.Basic.Example.js.map