text: import { createAction } from '@reduxjs/toolkit';
  const shortid = require('shortid');
  
  export const addContact = createAction('contacts/add', data => ({
    payload: {
      ...data,
      id: shortid.generate(),
    },
  }));
  
  export const deleteContact = createAction('contacts/delete');
  
  export const filterContact = createAction('contacts/changeFilter');
  