import * as React from 'react';
import { Label, Pivot, PivotItem } from '@fluentui/react';
export var PivotOnChangeExample = function () {
    var _a = React.useState(undefined), lastHeader = _a[0], setLastHeader = _a[1];
    return (React.createElement("div", null,
        React.createElement(Label, null,
            "Last onLinkClick from: ", lastHeader === null || lastHeader === void 0 ? void 0 :
            lastHeader.props.headerText),
        React.createElement(Pivot, { "aria-label": "OnChange Pivot Example", linkSize: "large", linkFormat: "tabs", onLinkClick: setLastHeader },
            React.createElement(PivotItem, { headerText: "Foo" },
                React.createElement(Label, null, "Pivot #1")),
            React.createElement(PivotItem, { headerText: "Bar" },
                React.createElement(Label, null, "Pivot #2")),
            React.createElement(PivotItem, { headerText: "Bas" },
                React.createElement(Label, null, "Pivot #3")),
            React.createElement(PivotItem, { headerText: "Biz" },
                React.createElement(Label, null, "Pivot #4")))));
};
//# sourceMappingURL=Pivot.OnChange.Example.js.map