text: import { configureStore } from '@reduxjs/toolkit';
  import { contactReducer } from './contacts/reducers';
  import {
    FLUSH,
    REHYDRATE,
    PAUSE,
    PERSIST,
    PURGE,
    REGISTER,
  } from 'redux-persist';
  import logger from 'redux-logger';
  
  export const store = configureStore({
    reducer: contactReducer,
    middleware: getDefaultMiddleware =>
      getDefaultMiddleware({
        serializableCheck: {
          ignoredActions: [FLUSH, REHYDRATE, PAUSE, PERSIST, PURGE, REGISTER],
        },
      }).concat(logger),
    devTools: process.env.NODE_ENV === 'development',
  });
  