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