define(["require", "exports", "react", "@fluentui/react", "@fluentui/react-tabs"], function (require, exports, React, react_1, react_tabs_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.TabsOnChangeExample = void 0;
    var TabsOnChangeExample = function () {
        var _a = React.useState(undefined), lastTab = _a[0], setLastTab = _a[1];
        return (React.createElement("div", null,
            React.createElement(react_1.Label, null,
                "Last onTabClick from: ", lastTab === null || lastTab === void 0 ? void 0 :
                lastTab.props.headerText),
            React.createElement(react_tabs_1.Tabs, { "aria-label": "OnChange Tabs Example", tabSize: "large", tabFormat: "tabs", onTabClick: setLastTab },
                React.createElement(react_tabs_1.TabItem, { headerText: "Foo" },
                    React.createElement(react_1.Label, null, "Tab #1")),
                React.createElement(react_tabs_1.TabItem, { headerText: "Bar" },
                    React.createElement(react_1.Label, null, "Tab #2")),
                React.createElement(react_tabs_1.TabItem, { headerText: "Bas" },
                    React.createElement(react_1.Label, null, "Tab #3")),
                React.createElement(react_tabs_1.TabItem, { headerText: "Biz" },
                    React.createElement(react_1.Label, null, "Tab #4")))));
    };
    exports.TabsOnChangeExample = TabsOnChangeExample;
});
//# sourceMappingURL=Tabs.OnChange.Example.js.map