added orai

This commit is contained in:
szabomarton
2025-03-13 10:04:04 +01:00
parent 5092aedfca
commit 98b119aa96
9 changed files with 410 additions and 1367 deletions

View File

@@ -0,0 +1,26 @@
import {createSlice} from "@reduxjs/toolkit";
interface CounterState {
value: number;
}
const initialState: CounterState = {
value: 0,
};
const counterSlice = createSlice({
name: "counter",
initialState,
reducers: {
increment: (state) => {
state.value += 1;
},
decrement: (state) => {
state.value -= 1;
},
},
});
export const {increment, decrement} = counterSlice.actions;
export default counterSlice.reducer;