import { createReducer } from '@reduxjs/toolkit';
import { actionIsLoading } from '../action';

const reducerLoading = createReducer(false, {
  [actionIsLoading.type]: (_, { payload }: {payload : boolean}) => payload,
});

export default reducerLoading;
