define(["require", "exports", "react", "@fluentui/react/lib/Button", "@fluentui/react"], function (require, exports, React, Button_1, react_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.PivotOverrideExample = void 0;
    var PivotOverrideExample = function () {
        var _a = React.useState(0), selectedKey = _a[0], setSelectedKey = _a[1];
        var onButtonClick = function () {
            setSelectedKey((selectedKey + 1) % 3);
        };
        return (React.createElement("div", null,
            React.createElement(react_1.Pivot, { "aria-label": "Override Selected Item Pivot Example", selectedKey: String(selectedKey) },
                React.createElement(react_1.PivotItem, { headerText: "My Files", itemKey: "0" },
                    React.createElement(react_1.Label, null, "Pivot #1")),
                React.createElement(react_1.PivotItem, { headerText: "Recent", itemKey: "1" },
                    React.createElement(react_1.Label, null, "Pivot #2")),
                React.createElement(react_1.PivotItem, { headerText: "Shared with me", itemKey: "2" },
                    React.createElement(react_1.Label, null, "Pivot #3"))),
            React.createElement(Button_1.DefaultButton, { onClick: onButtonClick }, "Select next item")));
    };
    exports.PivotOverrideExample = PivotOverrideExample;
});
//# sourceMappingURL=Pivot.Override.Example.js.map