"use strict";var React=require("react");const useGetTextSetting=({isInStock:e,props:t,isRequireSubscriptionConsent:r})=>{let s=React.useMemo(()=>e?r?t?.setting?.requireAcceptTermLabel??"Accept terms to purchase":t?.setting?.text:t?.setting?.outOfStockLabel,[e,r,t?.setting?.text,t?.setting?.outOfStockLabel,t?.setting?.requireAcceptTermLabel]);return{text:s}};exports.useGetTextSetting=useGetTextSetting;
