mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 14:49:53 +00:00
24 lines
447 B
JavaScript
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;
|