const removeNote = (notes, id) => {
  const note = notes.find(item => item.id === id);
  const index = notes.indexOf(note);
  return [
    ...notes.slice(0, index),