insomnia/app/ui/components/base/dropdown/dropdown-button.js

20 lines
378 B
JavaScript
Raw Normal View History

2017-08-10 01:56:27 +00:00
import React, {PureComponent} from 'react';
import PropTypes from 'prop-types';
2016-11-11 22:01:21 +00:00
class DropdownButton extends PureComponent {
render () {
const {children, ...props} = this.props;
return (
<button type="button" {...props}>
{children}
</button>
);
}
}
2016-11-11 22:01:21 +00:00
DropdownButton.propTypes = {
children: PropTypes.node
};
2016-11-11 22:01:21 +00:00
export default DropdownButton;