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