define(["require", "exports", "tslib", "react", "@fluentui/react", "@fluentui/react-tabs"], function (require, exports, tslib_1, React, react_1, react_tabs_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.TabsIconCountExample = void 0;
    var labelStyles = {
        root: { marginTop: 10 },
    };
    var TabsIconCountExample = function () {
        return (React.createElement("div", null,
            React.createElement(react_tabs_1.Tabs, { "aria-label": "Count and Icon Tabs Example" },
                React.createElement(react_tabs_1.TabItem, { headerText: "My Files", itemCount: 42, itemIcon: "Emoji2" },
                    React.createElement(react_1.Label, { styles: labelStyles }, "Tab #1")),
                React.createElement(react_tabs_1.TabItem, { itemCount: 23, itemIcon: "Recent" },
                    React.createElement(react_1.Label, { styles: labelStyles }, "Tab #2")),
                React.createElement(react_tabs_1.TabItem, { headerText: "Placeholder", itemIcon: "Globe" },
                    React.createElement(react_1.Label, { styles: labelStyles }, "Tab #3")),
                React.createElement(react_tabs_1.TabItem, { headerText: "Shared with me", itemIcon: "Ringer", itemCount: 1 },
                    React.createElement(react_1.Label, { styles: labelStyles }, "Tab #4")),
                React.createElement(react_tabs_1.TabItem, { headerText: "Customized Rendering", itemIcon: "Globe", itemCount: 10, onRenderTab: _customRenderer },
                    React.createElement(react_1.Label, { styles: labelStyles }, "Customized Rendering")))));
    };
    exports.TabsIconCountExample = TabsIconCountExample;
    function _customRenderer(tab, defaultRenderer) {
        if (!tab || !defaultRenderer) {
            return null;
        }
        return (React.createElement("span", { style: { flex: '0 1 100%' } },
            defaultRenderer(tslib_1.__assign(tslib_1.__assign({}, tab), { itemIcon: undefined })),
            React.createElement(react_1.Icon, { iconName: tab.itemIcon, style: { color: 'red' } })));
    }
});
//# sourceMappingURL=Tabs.IconCount.Example.js.map