import { themr } from 'react-css-themr'; import { switchFactory } from './Switch.js'; import { SWITCH } from '../identifiers.js'; import thumbFactory from './Thumb.js'; import themedRippleFactory from '../ripple'; import theme from './theme.scss'; const applyTheme = (Component) => themr(SWITCH, theme)(Component); const ripple = themedRippleFactory({ centered: true, spread: 2.6 }); const ThemedThumb = applyTheme(thumbFactory(ripple)); const ThemedSwitch = applyTheme(switchFactory(ThemedThumb)); export default ThemedSwitch; export { ThemedSwitch as Switch };