text: 
  
  export  const AppReducer= (state,action) => {
     switch (action.type) {
        case 'DELETE' :
            return {
                 ...state,
                 transactions: state.transactions.filter(transaction=>transaction.id !== action.payload)
          
          }
  
          case 'ADD':
              return {
                  ...state,
                  transactions: [...state.transactions,action.payload]
              }
         default:
             return state;
     }
  }
  