import {
setChatInputIsClearRequested as e,
setChatInputIsProcessing as t,
} from "./chat-input.action"
export const chatInputReducer = (r, a) => {
switch (a.type) {
case e.type:
return { ...r, isClearRequested: a.payload }
case t.type:
return { ...r, isProcessing: a.payload }
default:
return r
}
}