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