import * as React from 'react';
import { Tabs, TabItem } from '@fluentui/react-tabs';
var getTabId = function (itemKey) {
    return "ShapeColorTabs_" + itemKey;
};
export 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(Tabs, { "aria-label": "Separately Rendered Content Tabs Example", selectedKey: selectedKey, onTabClick: handleTabClick, headersOnly: true, getTabId: getTabId },
            React.createElement(TabItem, { headerText: "Rectangle red", itemKey: "rectangleRed" }),
            React.createElement(TabItem, { headerText: "Square red", itemKey: "squareRed" }),
            React.createElement(TabItem, { headerText: "Rectangle green", itemKey: "rectangleGreen" }))));
};
//# sourceMappingURL=Tabs.Separate.Example.js.map