insomnia/app/ui/components/base/dropdown/dropdown-right.js
2017-08-09 18:56:27 -07:00

22 lines
499 B
JavaScript

import React, {PureComponent} from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
class DropdownRight extends PureComponent {
render () {
const {className, children, ...extraProps} = this.props;
return (
<span className={classnames('dropdown__right', className)} {...extraProps}>
{children}
</span>
);
}
}
DropdownRight.propTypes = {
children: PropTypes.node,
className: PropTypes.string
};
export default DropdownRight;