insomnia/app/ui/components/base/DropdownDivider.js
2016-09-16 22:46:44 -07: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;