index.ts 331 B

1234567891011
  1. import { createReducer } from '@reduxjs/toolkit';
  2. import { actionIsOpen } from '../action';
  3. import { IPayload } from '../../../typescript/redux/controlApp/interfaces'
  4. const reducerControlApp = createReducer('', {
  5. [actionIsOpen.type]: (_, { payload }:IPayload) => {
  6. return payload
  7. },
  8. });
  9. export default reducerControlApp;