mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 23:00:30 +00:00
22 lines
499 B
JavaScript
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;
|