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

19 lines
353 B
JavaScript
Raw Normal View History

import React, {PropTypes, PureComponent} from 'react';
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;