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