import * as React from 'react';
import { DefaultButton } from '@fluentui/react/lib/Button';
import { Label, Pivot, PivotItem } from '@fluentui/react';
export 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(Pivot, { "aria-label": "Override Selected Item Pivot Example", selectedKey: String(selectedKey) },
            React.createElement(PivotItem, { headerText: "My Files", itemKey: "0" },
                React.createElement(Label, null, "Pivot #1")),
            React.createElement(PivotItem, { headerText: "Recent", itemKey: "1" },
                React.createElement(Label, null, "Pivot #2")),
            React.createElement(PivotItem, { headerText: "Shared with me", itemKey: "2" },
                React.createElement(Label, null, "Pivot #3"))),
        React.createElement(DefaultButton, { onClick: onButtonClick }, "Select next item")));
};
//# sourceMappingURL=Pivot.Override.Example.js.map