import { configureStore, createSlice } from "@reduxjs/toolkit";const counterSlice = createSlice({ name: "counter", initialState: { counter: 0 }, showCounter: true, reducers: { increment(state) { state.counter = state.counter + 1; }, decrement(state) { state.counter = state.counter - 1; }, increase(state, action) { state.counter = state.counter + action.payload; ..