mirror of
https://github.com/Kong/insomnia
synced 2024-11-12 17:26:32 +00:00
20 lines
382 B
JavaScript
20 lines
382 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;
|