\n {isLoading && !products?.length ?
Loading products...
: undefined}\n {products && products.length\n ? products.map(product =>
)\n : undefined}\n
\n );\n};\n\nPetFoodCardsComponent.propTypes = {\n me: PropTypes.object,\n getProducts: PropTypes.func.isRequired,\n products: PropTypes.array,\n isLoading: PropTypes.bool,\n getVendor: PropTypes.func.isRequired,\n selectedVendor: PropTypes.object,\n};\n\nPetFoodCardsComponent.defaultProps = {\n products: [],\n isLoading: false,\n selectedVendor: null,\n};\n\nconst PetFoodCards = connect(\n ({ user: { me }, product: { data: products, isLoading }, vendor: { selectedVendor } }) => {\n return {\n me,\n products: products?.filter(\n product => product?.category?.slug === SLUG && product?.vendor_id?.name === selectedVendor?.name\n ),\n isLoading,\n selectedVendor,\n };\n },\n dispatch => ({\n getProducts: data => dispatch(getProductsAction(data)),\n getVendor: data => dispatch(getVendorAction(data)),\n })\n)(PetFoodCardsComponent);\n\nexport default PetFoodCards;\n","import React from 'react';\nimport PetFoodCards from './PetFoodCards';\n\nconst OrijenPetFoodShopApp = () =>