insomnia/packages/insomnia-app/app/ui/components/base/dropdown/dropdown-button.js
2018-12-12 12:36:11 -05:00

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;