define(["require", "exports", "react", "@fluentui/react"], function (require, exports, React, react_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.PivotOnChangeExample = void 0;
    var PivotOnChangeExample = function () {
        var _a = React.useState(undefined), lastHeader = _a[0], setLastHeader = _a[1];
        return (React.createElement("div", null,
            React.createElement(react_1.Label, null,
                "Last onLinkClick from: ", lastHeader === null || lastHeader === void 0 ? void 0 :
                lastHeader.props.headerText),
            React.createElement(react_1.Pivot, { "aria-label": "OnChange Pivot Example", linkSize: "large", linkFormat: "tabs", onLinkClick: setLastHeader },
                React.createElement(react_1.PivotItem, { headerText: "Foo" },
                    React.createElement(react_1.Label, null, "Pivot #1")),
                React.createElement(react_1.PivotItem, { headerText: "Bar" },
                    React.createElement(react_1.Label, null, "Pivot #2")),
                React.createElement(react_1.PivotItem, { headerText: "Bas" },
                    React.createElement(react_1.Label, null, "Pivot #3")),
                React.createElement(react_1.PivotItem, { headerText: "Biz" },
                    React.createElement(react_1.Label, null, "Pivot #4")))));
    };
    exports.PivotOnChangeExample = PivotOnChangeExample;
});
//# sourceMappingURL=Pivot.OnChange.Example.js.map