UNPKG

@findify/react-components

Version:
17 lines 706 B
import useTranslations from "../../../../helpers/useTranslations"; import { List } from 'immutable'; import { jsx as _jsx } from "react/jsx-runtime"; var styles = { "variants": "findify-components--cards--product--variants__variants" }; export default (function (_ref) { var item = _ref.item, config = _ref.config, _ref$theme = _ref.theme, theme = _ref$theme === void 0 ? styles : _ref$theme; var translate = useTranslations(); return config.getIn(['variants', 'display']) && item.get('variants', List()).size > 1 ? /*#__PURE__*/_jsx("div", { className: theme.variants, children: translate('product.availableInVariants', item.get('variants', List()).size) }) : null; });