OwlcodeAds/js-src/slice/menu-open.ts

17 lines
388 B
TypeScript
Raw Normal View History

2023-08-05 09:22:04 +02:00
import type { PayloadAction } from '@reduxjs/toolkit'
import { createSlice } from '@reduxjs/toolkit'
export const menuOpenSlice = createSlice({
name: 'menu-open',
initialState: {
value: false
},
reducers: {
set: (state, action: PayloadAction<boolean>) => {
state.value = action.payload
}
}
})
export default menuOpenSlice.reducer