text: // @flow
  import { connect } from 'react-redux'
  import ordersTableSelector, { cancelOrder } from '../../store/models/ordersTable'
  
  import type { State } from '../../types'
  
  export const mapStateToProps = (state: State) => {
    const { orders, trades, currentPair, currentPairData } = ordersTableSelector(state)
  
    return {
      orders,
      trades,
      currentPair,
      currentPairData,
    }
  }
  
  export const mapDispatchToProps = { cancelOrder }
  
  export default connect(
    mapStateToProps,
    mapDispatchToProps,
  )
  