"use strict";const r=require("react"),a=require("./useRoutes-df841412.js"),n={alerts:[]},i=a.createStore("header-alerts",n);function A(){const[e,s]=a.useStore(i),l=r.useCallback(t=>{s(u=>({alerts:[...u.alerts,t]}))},[]),c=r.useCallback(()=>{const t=e.alerts.shift();return s({alerts:e.alerts}),t},[e.alerts]),o=r.useCallback(()=>{const t=e.alerts;return s({alerts:[]}),t},[e.alerts]);return{state:e,mutations:{push:l,pop:c,popAll:o}}}exports.useHeaderAlerts=A;
