"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PivotSeparateExample = void 0;
var React = require("react");
var react_1 = require("@fluentui/react");
var getTabId = function (itemKey) {
    return "ShapeColorPivot_" + itemKey;
};
var PivotSeparateExample = function () {
    var _a = React.useState('rectangleRed'), selectedKey = _a[0], setSelectedKey = _a[1];
    var handleLinkClick = function (item) {
        if (item) {
            setSelectedKey(item.props.itemKey);
        }
    };
    return (React.createElement("div", null,
        React.createElement("div", { "aria-labelledby": getTabId(selectedKey), role: "tabpanel", style: {
                float: 'left',
                width: 100,
                height: selectedKey === 'squareRed' ? 100 : 200,
                background: selectedKey === 'rectangleGreen' ? 'green' : 'red',
            } }),
        React.createElement(react_1.Pivot, { "aria-label": "Separately Rendered Content Pivot Example", selectedKey: selectedKey, 
            // eslint-disable-next-line react/jsx-no-bind
            onLinkClick: handleLinkClick, headersOnly: true, getTabId: getTabId },
            React.createElement(react_1.PivotItem, { headerText: "Rectangle red", itemKey: "rectangleRed" }),
            React.createElement(react_1.PivotItem, { headerText: "Square red", itemKey: "squareRed" }),
            React.createElement(react_1.PivotItem, { headerText: "Rectangle green", itemKey: "rectangleGreen" }))));
};
exports.PivotSeparateExample = PivotSeparateExample;
//# sourceMappingURL=Pivot.Separate.Example.js.map