import{useMemo as t}from"react";let useGetTextSetting=({isInStock:e,props:r,isRequireSubscriptionConsent:i})=>{let c=t(()=>e?i?r?.setting?.requireAcceptTermLabel??"Accept terms to purchase":r?.setting?.text:r?.setting?.outOfStockLabel,[e,i,r?.setting?.text,r?.setting?.outOfStockLabel,r?.setting?.requireAcceptTermLabel]);return{text:c}};export{useGetTextSetting};
