"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _toolkit = require("@reduxjs/toolkit");
const initialState = {
  currentIndex: 0,
  currentPostdetail: {}
};
const postDetailSlice = (0, _toolkit.createSlice)({
  name: 'postDetail',
  initialState,
  reducers: {
    updateCurrentIndex: (state, action) => {
      state.currentIndex = action.payload;
    },
    updatePostDetail: (state, action) => {
      state.currentPostdetail = action.payload;
    }
  }
});
var _default = exports.default = postDetailSlice;
//# sourceMappingURL=postDetailSlice.js.map