mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 16:43:16 +00:00
makes the api key modal work
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
import { configureStore, createSlice, PayloadAction } from '@reduxjs/toolkit';
|
||||
import {
|
||||
configureStore,
|
||||
createSelector,
|
||||
createSlice,
|
||||
PayloadAction,
|
||||
} from '@reduxjs/toolkit';
|
||||
|
||||
interface State {
|
||||
isApiKeyModalOpen: boolean;
|
||||
@@ -38,5 +43,6 @@ type RootState = ReturnType<typeof store.getState>;
|
||||
export const selectIsApiKeyModalOpen = (state: RootState) =>
|
||||
state.app.isApiKeyModalOpen;
|
||||
export const selectApiKey = (state: RootState) => state.app.apiKey;
|
||||
export const selectApiKeyStatus = (state: RootState) => !!state.app.apiKey;
|
||||
|
||||
export default store;
|
||||
|
||||
Reference in New Issue
Block a user