mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 17:30:16 +01:00
20 lines
376 B
JavaScript
20 lines
376 B
JavaScript
|
|
import { createSlice } from '@reduxjs/toolkit';
|
||
|
|
|
||
|
|
const initialState = {
|
||
|
|
isSubmitting: false,
|
||
|
|
};
|
||
|
|
|
||
|
|
const currentSlice = createSlice({
|
||
|
|
name: 'submit',
|
||
|
|
initialState,
|
||
|
|
reducers: {
|
||
|
|
setSubmitState: (state, action) => {
|
||
|
|
state.isSubmitting = action.payload;
|
||
|
|
},
|
||
|
|
}
|
||
|
|
});
|
||
|
|
|
||
|
|
export const { setSubmitState } = currentSlice.actions;
|
||
|
|
|
||
|
|
export default currentSlice.reducer;
|