define(["require", "exports", "react", "@fluentui/react", "@fluentui/react-hooks", "@fluentui/react/lib/Button"], function (require, exports, React, react_1, react_hooks_1, Button_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.CalloutBasicExample = void 0;
    var CalloutBasicExample = function () {
        var _a = react_hooks_1.useBoolean(false), isCalloutVisible = _a[0], toggleIsCalloutVisible = _a[1].toggle;
        var buttonId = react_hooks_1.useId('callout-button');
        var labelId = react_hooks_1.useId('callout-label');
        var descriptionId = react_hooks_1.useId('callout-description');
        return (React.createElement(React.Fragment, null,
            React.createElement(Button_1.DefaultButton, { id: buttonId, onClick: toggleIsCalloutVisible, text: isCalloutVisible ? 'Hide callout' : 'Show callout', className: styles.button }),
            isCalloutVisible && (React.createElement(react_1.Callout, { className: styles.callout, ariaLabelledBy: labelId, ariaDescribedBy: descriptionId, role: "alertdialog", gapSpace: 0, target: "#" + buttonId, onDismiss: toggleIsCalloutVisible, setInitialFocus: true },
                React.createElement(react_1.Text, { block: true, variant: "xLarge", className: styles.title, id: labelId }, "Callout title here"),
                React.createElement(react_1.Text, { block: true, variant: "small", id: descriptionId }, "Message body is optional. If help documentation is available, consider adding a link to learn more at the bottom."),
                React.createElement(react_1.Link, { href: "http://microsoft.com", target: "_blank", className: styles.link }, "Sample link")))));
    };
    exports.CalloutBasicExample = CalloutBasicExample;
    var styles = react_1.mergeStyleSets({
        button: {
            width: 130,
        },
        callout: {
            width: 320,
            padding: '20px 24px',
        },
        title: {
            marginBottom: 12,
            fontWeight: react_1.FontWeights.semilight,
        },
        link: {
            display: 'block',
            marginTop: 20,
        },
    });
});
//# sourceMappingURL=Callout.Basic.Example.js.map