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

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;