2016-05-31 00:23:55 +03:00
|
|
|
import { themr } from 'react-css-themr';
|
2017-01-26 20:05:32 +03:00
|
|
|
import { TABS } from '../identifiers';
|
|
|
|
import { tabsFactory } from './Tabs';
|
|
|
|
import { TabContent } from './TabContent';
|
|
|
|
import { tabFactory } from './Tab';
|
2017-01-21 15:03:38 +03:00
|
|
|
import themedRippleFactory from '../ripple';
|
2017-01-26 20:05:32 +03:00
|
|
|
import { FontIcon } from '../font_icon/FontIcon';
|
2017-01-05 04:42:18 +03:00
|
|
|
import theme from './theme.css';
|
2016-05-31 00:23:55 +03:00
|
|
|
|
2017-01-26 20:05:32 +03:00
|
|
|
const applyTheme = Component => themr(TABS, theme)(Component);
|
2016-05-31 00:23:55 +03:00
|
|
|
const ThemedTabContent = applyTheme(TabContent);
|
2017-07-13 21:03:34 +03:00
|
|
|
const ThemedTab = applyTheme(tabFactory(themedRippleFactory({ centered: false }), FontIcon));
|
2016-11-22 11:45:38 +03:00
|
|
|
const ThemedTabs = applyTheme(tabsFactory(ThemedTab, ThemedTabContent, FontIcon));
|
2016-05-31 00:23:55 +03:00
|
|
|
|
|
|
|
export { ThemedTab as Tab };
|
|
|
|
export { ThemedTabs as Tabs };
|