mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 14:49:53 +00:00
20 lines
378 B
JavaScript
20 lines
378 B
JavaScript
import React, {PureComponent} from 'react';
|
|
import PropTypes from 'prop-types';
|
|
|
|
class DropdownButton extends PureComponent {
|
|
render () {
|
|
const {children, ...props} = this.props;
|
|
return (
|
|
<button type="button" {...props}>
|
|
{children}
|
|
</button>
|
|
);
|
|
}
|
|
}
|
|
|
|
DropdownButton.propTypes = {
|
|
children: PropTypes.node
|
|
};
|
|
|
|
export default DropdownButton;
|