'use client';
import{jsxs as t,jsx as o}from"react/jsx-runtime";import{If as r}from"@gem-sdk/system";import{useBtnAddToCart as e}from"./hooks/useAddToCart.js";import{getSplitStyle as m}from"./common/styles.js";import s from"./SoldOutButton.js";import d from"./AddToCartButton.js";let i=i=>{let{setting:l,builderProps:n,style:a,styles:u,children:f}=i,{wrapStyle:p,restStyle:c}=m(a),{isLoading:j,isInStock:y,outOfStockLabel:h,notiComponent:B,addToCart:C,addToCartRef:T}=e({setting:l,styles:u,builderProps:n});return t("div",{style:p,ref:T,children:[r(y,o(d,{...i,style:c,children:f,isLoading:j,addToCart:C}),o(s,{...i,style:c,children:f,label:h})),B]})};export{i as default};
