epn-ui
Version:
Дизайн система кабинета ВМ
17 lines (14 loc) • 1.6 kB
JavaScript
import React from 'react';
import clsx from 'clsx';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faEllipsisH } from '@fortawesome/pro-regular-svg-icons/faEllipsisH';
import Tabs from 'antd/lib/tabs';
var TabPane = Tabs.TabPane;
function NavigationTabs(_a) {
var activeKey = _a.activeKey, animated = _a.animated, centered = _a.centered, defaultActiveKey = _a.defaultActiveKey, tabBarExtraContent = _a.tabBarExtraContent, tabBarGutter = _a.tabBarGutter, tabBarStyle = _a.tabBarStyle, tabPosition = _a.tabPosition, destroyInactiveTabPane = _a.destroyInactiveTabPane, children = _a.children, style = _a.style, className = _a.className, emptyContent = _a.emptyContent, renderTabBar = _a.renderTabBar, onChange = _a.onChange, onTabClick = _a.onTabClick, onTabScroll = _a.onTabScroll;
return (React.createElement(Tabs, { moreIcon: React.createElement(FontAwesomeIcon, { icon: faEllipsisH }), popupClassName: "epn-navigationTabs__dropdown", style: style, className: clsx('epn-navigationTabs', className, {
'epn-navigationTabs__emptyContent': emptyContent,
}), activeKey: activeKey, animated: animated, centered: centered, defaultActiveKey: defaultActiveKey, size: "middle", tabBarExtraContent: tabBarExtraContent, tabBarGutter: tabBarGutter, tabBarStyle: tabBarStyle, tabPosition: tabPosition, destroyInactiveTabPane: destroyInactiveTabPane, renderTabBar: renderTabBar, onChange: onChange, onTabClick: onTabClick, onTabScroll: onTabScroll }, children));
}
NavigationTabs.TabPane = TabPane;
export { NavigationTabs, NavigationTabs as default };