text: import { createSlice } from '@reduxjs/toolkit';
  
  //combine reducers here
  const productIdSlice = createSlice({
    name: 'selectedProductId',
    initialState: 1,
    reducers: {
      changeProductId(state, action) {
        const id = action.payload;
        return id;
      },
    },
  });
  
  export const { changeProductId } = productIdSlice.actions;
  export default productIdSlice.reducer;
  