insomnia/app/ui/components/base/DropdownDivider.js

24 lines
447 B
JavaScript
Raw Normal View History

import React, {PropTypes} from 'react';
import classnames from 'classnames';
2016-04-23 06:53:22 +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 = {
name: PropTypes.string
2016-04-29 04:57:03 +00:00
};
2016-04-23 06:53:22 +00:00
export default DropdownDivider;