{"version":3,"sources":["webpack:///./Scripts/Selectors/wishlist-selectors.js","webpack:///./Scripts/Components/FavouriteIcon.js"],"names":["selectWishListQuantity","createSelector","state","wishlist","wishList","quantity","FavouriteIcon","useSelector","className","translate"],"mappings":"+IAIMA,EAAyBC,aAFR,SAAAC,GAAK,OAAIA,EAAMC,YAIlC,SAAAC,GAAQ,OAAIA,EAASC,YCDV,SAASC,IAEpB,IAAMD,EAAWE,YAAYP,GAE7B,OACI,oCACI,uBAAGQ,UAAU,mBAAmBH,EAAW,GAAK,0BAAMG,UAAU,kBAAkBH,IAClF,0BAAMG,UAAU,kBAAkBC,YAAU,oBAZxD","file":"13.9da109a196046f23cc3f.js","sourcesContent":["import { createSelector } from 'reselect';\r\n\r\nconst selectWishList = state => state.wishlist;\r\n\r\nconst selectWishListQuantity = createSelector(\r\n selectWishList,\r\n wishList => wishList.quantity,\r\n);\r\n\r\nexport { \r\n selectWishListQuantity, \r\n};","import React, { useState } from 'react';\r\nimport { useSelector } from 'react-redux';\r\nimport { translate } from '../Services/translation';\r\nimport { selectWishListQuantity } from '../Selectors/wishlist-selectors';\r\n\r\nexport default function FavouriteIcon() {\r\n\r\n const quantity = useSelector(selectWishListQuantity)\r\n\r\n return (\r\n <>\r\n {quantity > 0 && {quantity}}\r\n {translate('wishlist.title')}\r\n \r\n )\r\n}"],"sourceRoot":""}