UNPKG

@shopgate/engage

Version:
4 lines 918 B
function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}import React from'react';import classNames from'classnames';import{i18n}from"../../../core";import{IN_STORE_PICKUP_ROPIS_LABEL}from"../../constants";import{itemRowDisabled}from"./FulfillmentSelectorItem.style";import{useFulfillmentSelectorState}from"./FulfillmentSelector.hooks";/** * Renders the FulfillmentSelectorROPIS components. * @returns {JSX} */export function FulfillmentSelectorROPIS(){var _useFulfillmentSelect=useFulfillmentSelectorState(),isROPISEnabled=_useFulfillmentSelect.isROPISEnabled,isReady=_useFulfillmentSelect.isReady;var classes=classNames(_defineProperty({},itemRowDisabled.toString(),!isReady||!isROPISEnabled));return React.createElement("div",{className:classes},i18n.text(IN_STORE_PICKUP_ROPIS_LABEL));}