react-toolbox-legacy
Version:
Unofficial fork of the react-toolbox package, compatible with React v16
16 lines (13 loc) • 586 B
JavaScript
import { themr } from 'react-css-themr-legacy';
import { TABS } from '../identifiers.js';
import { tabsFactory } from './Tabs.js';
import { TabContent } from './TabContent.js';
import { Tab } from './Tab.js';
import FontIcon from '../font_icon/FontIcon.js';
import theme from './theme.scss';
const applyTheme = (Component) => themr(TABS, theme)(Component);
const ThemedTabContent = applyTheme(TabContent);
const ThemedTab = applyTheme(Tab);
const ThemedTabs = applyTheme(tabsFactory(ThemedTab, ThemedTabContent, FontIcon));
export { ThemedTab as Tab };
export { ThemedTabs as Tabs };