react-toolbox/components/tabs/index.js

15 lines
520 B
JavaScript
Raw Normal View History

2016-05-31 00:23:55 +03:00
import { themr } from 'react-css-themr';
import { TABS } from '../identifiers.js';
import { tabsFactory } from './Tabs.js';
import { TabContent } from './TabContent.js';
import { Tab } from './Tab.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));
export { ThemedTab as Tab };
export { ThemedTabs as Tabs };