import { PayloadType } from '../constants/type';

export const setNavbarState = (state: Object, { payload }: PayloadType) => ({
  ...state,
  navbarState: payload.state,
});

export const setSidebarState = (state: Object, { payload }: PayloadType) => ({
  ...state,
  sidebarState: payload.state,
});
