'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),core=require("@gem-sdk/core"),Button=require("../../button/components/Button.js"),useGetTextSetting=require("../hooks/useGetTextSetting.js"),useSubscriptionConsentCheck=require("../hooks/useSubscriptionConsentCheck.js");const PostPurchaseAcceptButton=e=>{let t=core.useCurrentVariantInStock(),{isDisableAccept:s}=useSubscriptionConsentCheck.useSubscriptionConsentCheck(),{text:n}=useGetTextSetting.useGetTextSetting({isInStock:t,props:e,isRequireSubscriptionConsent:s});return jsxRuntime.jsx(Button.default,{...e,disabled:!t||s,setting:{...e.setting,text:n},styles:e.styles})};exports.default=PostPurchaseAcceptButton;
