import { createSlice } from "@reduxjs/toolkit";
let initialState = {
    requestStatus: "not_initiated",
    responseStatus: "not_recieved",
    haveAnIssue: false,
    issue: "",
    data: undefined
};
const agentSlice = createSlice({
    name: 'Agent',
    initialState: initialState,
    reducers: {
        setAgent: (state, action) => action.payload,
        resetAgent: (state, action) => initialState
    }
});
export const { setAgent, resetAgent } = agentSlice.actions;
export default agentSlice.reducer;
//# sourceMappingURL=agentSlice.js.map