MathiasKandelborg/TRUE-framework

View on GitHub
util/shared/models/navigation.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { action } from 'easy-peasy'
import INavigationModel from 'state/NavigationModel'

const navigationStore: INavigationModel = {
  drawerOpen: false,
  toggleDrawer: action((state, boolean) => {
    // eslint-disable-next-line no-param-reassign
    state.drawerOpen = boolean
  })
}

export default navigationStore