"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getStoreSearches = exports.getStores = exports.getProductSearches = exports.getProducts = exports.getOrders = exports.getCustomer = exports.getCategories = exports.getCart = exports.getAPI = void 0;

var _reselect = require("reselect");

// This is where all the selectors will live for any data model in the
// API.
var getAPI = function getAPI(_ref) {
  var data = _ref.data;
  return data;
};

exports.getAPI = getAPI;
var getCart = (0, _reselect.createSelector)(getAPI, function (_ref2) {
  var cart = _ref2.cart;
  return cart;
});
exports.getCart = getCart;
var getCategories = (0, _reselect.createSelector)(getAPI, function (_ref3) {
  var categories = _ref3.categories;
  return categories;
});
exports.getCategories = getCategories;
var getCustomer = (0, _reselect.createSelector)(getAPI, function (_ref4) {
  var customer = _ref4.customer;
  return customer;
});
exports.getCustomer = getCustomer;
var getOrders = (0, _reselect.createSelector)(getAPI, function (_ref5) {
  var orders = _ref5.orders;
  return orders;
});
exports.getOrders = getOrders;
var getProducts = (0, _reselect.createSelector)(getAPI, function (_ref6) {
  var products = _ref6.products;
  return products;
});
exports.getProducts = getProducts;
var getProductSearches = (0, _reselect.createSelector)(getAPI, function (_ref7) {
  var productSearches = _ref7.productSearches;
  return productSearches;
});
exports.getProductSearches = getProductSearches;
var getStores = (0, _reselect.createSelector)(getAPI, function (_ref8) {
  var stores = _ref8.stores;
  return stores;
});
exports.getStores = getStores;
var getStoreSearches = (0, _reselect.createSelector)(getAPI, function (_ref9) {
  var storeSearches = _ref9.storeSearches;
  return storeSearches;
});
exports.getStoreSearches = getStoreSearches;