|
@@ -0,0 +1,25 @@
|
|
|
+import { createSlice } from '@reduxjs/toolkit';
|
|
|
+
|
|
|
+interface QuotaModalState {
|
|
|
+ isQuotaAlertVisible: boolean;
|
|
|
+}
|
|
|
+
|
|
|
+const initialState: QuotaModalState = {
|
|
|
+ isQuotaAlertVisible: false,
|
|
|
+};
|
|
|
+
|
|
|
+const quotaModalSlice = createSlice({
|
|
|
+ name: 'quotaModal',
|
|
|
+ initialState,
|
|
|
+ reducers: {
|
|
|
+ showQuotaAlert: (state) => {
|
|
|
+ state.isQuotaAlertVisible = true;
|
|
|
+ },
|
|
|
+ hideQuotaAlert: (state) => {
|
|
|
+ state.isQuotaAlertVisible = false;
|
|
|
+ },
|
|
|
+ },
|
|
|
+});
|
|
|
+
|
|
|
+export const { showQuotaAlert, hideQuotaAlert } = quotaModalSlice.actions;
|
|
|
+export default quotaModalSlice.reducer;
|