import { createSlice } from '@reduxjs/toolkit';
const initialState = {
  currentIndex: 0,
  currentPostdetail: {}
};
const postDetailSlice = createSlice({
  name: 'postDetail',
  initialState,
  reducers: {
    updateCurrentIndex: (state, action) => {
      state.currentIndex = action.payload;
    },
    updatePostDetail: (state, action) => {
      state.currentPostdetail = action.payload;
    }
  }
});
export default postDetailSlice;
//# sourceMappingURL=postDetailSlice.js.map