define(["require", "exports", "react", "office-ui-fabric-react/lib/Button", "office-ui-fabric-react/lib/Panel", "@uifabric/react-hooks"], function (require, exports, React, Button_1, Panel_1, react_hooks_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var buttonStyles = { root: { marginRight: 8 } };
    exports.PanelFooterExample = function () {
        var _a = react_hooks_1.useBoolean(false), isOpen = _a[0], _b = _a[1], openPanel = _b.setTrue, dismissPanel = _b.setFalse;
        // This panel doesn't actually save anything; the buttons are just an example of what
        // someone might want to render in a panel footer.
        var onRenderFooterContent = React.useCallback(function () { return (React.createElement("div", null,
            React.createElement(Button_1.PrimaryButton, { onClick: dismissPanel, styles: buttonStyles }, "Save"),
            React.createElement(Button_1.DefaultButton, { onClick: dismissPanel }, "Cancel"))); }, [dismissPanel]);
        return (React.createElement("div", null,
            React.createElement(Button_1.DefaultButton, { text: "Open panel", onClick: openPanel }),
            React.createElement(Panel_1.Panel, { isOpen: isOpen, onDismiss: dismissPanel, headerText: "Panel with footer at bottom", closeButtonAriaLabel: "Close", onRenderFooterContent: onRenderFooterContent, 
                // Stretch panel content to fill the available height so the footer is positioned
                // at the bottom of the page
                isFooterAtBottom: true },
                React.createElement("p", null, "Content goes here."))));
    };
});
//# sourceMappingURL=Panel.Footer.Example.js.map