'use client';
import{jsx as t}from"react/jsx-runtime";import{useCurrentVariantInStock as e}from"@gem-sdk/core";import o from"../../button/components/Button.js";import{useGetTextSetting as s}from"../hooks/useGetTextSetting.js";import{useSubscriptionConsentCheck as r}from"../hooks/useSubscriptionConsentCheck.js";let PostPurchaseAcceptButton=n=>{let i=e(),{isDisableAccept:u}=r(),{text:m}=s({isInStock:i,props:n,isRequireSubscriptionConsent:u});return t(o,{...n,disabled:!i||u,setting:{...n.setting,text:m},styles:n.styles})};export{PostPurchaseAcceptButton as default};
