WIP: timer set

This commit is contained in:
2026-07-29 00:11:37 -04:00
parent 2990708174
commit 8f5c499ee2
16 changed files with 539 additions and 110 deletions
+25
View File
@@ -0,0 +1,25 @@
import { createSlice, type PayloadAction } from "@reduxjs/toolkit";
interface StateType {
startTime: string | null;
}
const initialState: StateType = {
startTime: null,
};
const timeSlice = createSlice({
name: "time",
initialState,
reducers: {
setStartTime: (state, action: PayloadAction<string>) => {
state.startTime = action.payload;
},
clearStartTime: (state) => {
state.startTime = null;
},
},
});
export const { setStartTime, clearStartTime } = timeSlice.actions;
export default timeSlice.reducer;