22 lines
436 B
JavaScript
22 lines
436 B
JavaScript
import { connect } from 'react-redux';
|
|
|
|
import AuctionPriceAndBidCount from '../../components/Auction/BidStatus.js';
|
|
|
|
function mapStateToProps(state, ownProps) {
|
|
const {
|
|
bidCount,
|
|
currentPrice,
|
|
isBidding,
|
|
isWinning,
|
|
} = getAuctionItemStatus(state, ownProps.id);
|
|
|
|
return {
|
|
bidCount,
|
|
currentPrice,
|
|
isBidding,
|
|
isWinning,
|
|
};
|
|
}
|
|
|
|
export default connect(mapStateToProps, null)(AuctionPriceAndBidCount);
|