import React, {Component, PropTypes} from 'react' import {bindActionCreators} from 'redux' import {connect} from 'react-redux' import Dropdown from '../base/Dropdown' import * as RequestActions from '../../actions/requests' class RequestActionsDropdown extends Component { render () { const {actions, request, requestGroup, buttonClassName, ...other} = this.props; const requestGroupId = requestGroup ? requestGroup.id : null; return ( ) } } RequestActionsDropdown.propTypes = { request: PropTypes.object.isRequired, actions: PropTypes.shape({ deleteRequest: PropTypes.func.isRequired }), requestGroup: PropTypes.object, buttonClassName: PropTypes.string }; function mapStateToProps (state) { return {actions: state.actions}; } function mapDispatchToProps (dispatch) { return {actions: bindActionCreators(RequestActions, dispatch)} } export default connect( mapStateToProps, mapDispatchToProps )(RequestActionsDropdown);