"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const a={messages:[]};function g(e,s){switch(s.type){case"add":return{...e,messages:[...e.messages,s.message]};case"remove":return{...e,messages:e.messages.filter(r=>r.id!==s.messageId)};case"clear":return{...e,messages:[]};default:return e}}exports.initialMessagesState=a;exports.messagesReducer=g;
