"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TabsSeparateExample = void 0;
var React = require("react");
var react_tabs_1 = require("@fluentui/react-tabs");
var getTabId = function (itemKey) {
    return "ShapeColorTabs_" + itemKey;
};
var TabsSeparateExample = function () {
    var _a = React.useState('rectangleRed'), selectedKey = _a[0], setSelectedKey = _a[1];
    var handleTabClick = React.useCallback(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_tabs_1.Tabs, { "aria-label": "Separately Rendered Content Tabs Example", selectedKey: selectedKey, onTabClick: handleTabClick, headersOnly: true, getTabId: getTabId },
            React.createElement(react_tabs_1.TabItem, { headerText: "Rectangle red", itemKey: "rectangleRed" }),
            React.createElement(react_tabs_1.TabItem, { headerText: "Square red", itemKey: "squareRed" }),
            React.createElement(react_tabs_1.TabItem, { headerText: "Rectangle green", itemKey: "rectangleGreen" }))));
};
exports.TabsSeparateExample = TabsSeparateExample;
//# sourceMappingURL=Tabs.Separate.Example.js.map