'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 i=i=>{let n=e(),{isDisableAccept:m}=r(),{text:u}=s({isInStock:n,props:i,isRequireSubscriptionConsent:m});return t(o,{...i,disabled:!n||m,setting:{...i.setting,text:u},styles:i.styles})};export{i as default};
