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