react-biz
Version:
React components for Business
21 lines (16 loc) • 472 B
JavaScript
import React, { PropTypes } from 'react';
const factory = (ripple) => {
const Thumb = ({ onMouseDown, theme, ...other }) => (
<span className={theme.thumb} onMouseDown={onMouseDown} {...other} />
);
Thumb.propTypes = {
children: PropTypes.node,
onMouseDown: PropTypes.func,
theme: PropTypes.shape({
ripple: PropTypes.string,
thumb: PropTypes.string,
}),
};
return ripple(Thumb);
};
export default factory;