insomnia/app/ui/components/base/dropdown/DropdownDivider.js
2016-11-11 14:01:21 -08:00

24 lines
447 B
JavaScript

import React, {PropTypes} from 'react';
import classnames from 'classnames';
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>
)
};
DropdownDivider.propTypes = {
name: PropTypes.string
};
export default DropdownDivider;