import {OneGood, GoodsNotFound} from "./index";
import {createStore, combineReducers, applyMiddleware, bindActionCreators} from 'redux';
import {getData, actionGoods, actionOrderAddNewGood, urlUpload} from "../reducers/index";
import {Provider, connect} from 'react-redux';
import {BrowserRouter as Router, Route, Link, Switch, Redirect, useHistory} from 'react-router-dom';
// const mapStateToProps = state => ({
// state: state,
// arr: getData(state),
// // search: getGoods(state)
// });
// const mapDispatchToProps = dispatch => bindActionCreators({
// getData: actionGoods
// }, dispatch);
const GoodsList = ({arr = [], isWish, className = "goods", wishAdd, wishDelete, onAdd, onAddtoOrder}) => {
const history = useHistory();
// console.log(arr)
if(arr.length == 0) {
return(
<>