import {createSlice} from "@reduxjs/toolkit";

export interface InterfaceState {
    dim: boolean;
}

const initialState: InterfaceState = {
    dim: false
}
export const interfaceSlice = createSlice({
    name: 'interface',
    initialState,
    reducers: {
        enableDim: (state) => {
            state.dim = true;
        },
        disableDim: (state) => {
            state.dim = false;
        }
    }
});

export const {enableDim, disableDim} = interfaceSlice.actions;
export default interfaceSlice.reducer;