import{jsx as t}from"react/jsx-runtime";import{useCallback as e}from"react";import o from"../../../../notification/hooks/useNotification.js";import"../../../../notification/components/Notice.js";import{CartMessage as s}from"../CartMessage.js";let useCartMessage=(r,i)=>{let[a,n]=o({closable:!0,maxCount:3}),m=e((e,o)=>{a.open({content:t(s,{type:o,message:e,styles:r,setting:i}),placement:"top"})},[a,i,r]);return{showMessage:m,notiComponent:n}};export{useCartMessage};
