2016-07-16 02:06:10 +00:00
|
|
|
import React, {PropTypes} from 'react';
|
2016-08-15 17:04:36 +00:00
|
|
|
import classnames from 'classnames';
|
2016-04-23 06:53:22 +00:00
|
|
|
|
2016-08-15 17:04:36 +00:00
|
|
|
const DropdownDivider = ({name}) => {
|
|
|
|
const classes = classnames(
|
|
|
|
'dropdown__divider',
|
|
|
|
{'dropdown__divider--no-name': !name}
|
|
|
|
);
|
|
|
|
|
|
|
|
return (
|
|
|
|
<li className={classes}>
|
|
|
|
<span className="dropdown__divider__label">
|
|
|
|
{name}
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
)
|
|
|
|
};
|
2016-04-23 06:53:22 +00:00
|
|
|
|
2016-04-29 04:57:03 +00:00
|
|
|
DropdownDivider.propTypes = {
|
2016-08-15 17:04:36 +00:00
|
|
|
name: PropTypes.string
|
2016-04-29 04:57:03 +00:00
|
|
|
};
|
2016-04-23 06:53:22 +00:00
|
|
|
|
|
|
|
export default DropdownDivider;
|