"use strict";var jsxRuntime=require("react/jsx-runtime"),React=require("react"),useNotification=require("../../../../notification/hooks/useNotification.js");require("../../../../notification/components/Notice.js");var CartMessage=require("../CartMessage.js");const useCartMessage=(e,t)=>{let[s,a]=useNotification.default({closable:!0,maxCount:3}),i=React.useCallback((a,i)=>{s.open({content:jsxRuntime.jsx(CartMessage.CartMessage,{type:i,message:a,styles:e,setting:t}),placement:"top"})},[s,t,e]);return{showMessage:i,notiComponent:a}};exports.useCartMessage=useCartMessage;
