"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OverlayLightExample = void 0;
var React = require("react");
var react_1 = require("@fluentui/react");
var Button_1 = require("@fluentui/react/lib-commonjs/Button");
var react_hooks_1 = require("@fluentui/react-hooks");
var exampleStyles = {
    root: [
        'OverlayExample-content',
        {
            background: 'blue',
            bottom: '0',
            color: 'white',
            left: '0',
            padding: '10px',
            position: 'absolute',
            right: '0',
        },
    ],
};
var getClassNames = react_1.classNamesFunction();
var classNames = getClassNames(exampleStyles, {});
var OverlayLightExample = function () {
    var _a = react_hooks_1.useBoolean(false), isOverlayVisible = _a[0], toggleIsOverlayVisible = _a[1].toggle;
    return (React.createElement(React.Fragment, null,
        React.createElement(Button_1.DefaultButton, { onClick: toggleIsOverlayVisible, text: "Show the overlay" }),
        isOverlayVisible && (React.createElement(react_1.Overlay, { onClick: toggleIsOverlayVisible },
            React.createElement("div", { className: classNames.root },
                React.createElement("p", null, "I am content within the overlay."))))));
};
exports.OverlayLightExample = OverlayLightExample;
//# sourceMappingURL=Overlay.Light.Example.js.map