text: import { JournalEntry } from './JournalEntry';
  import { useSelector } from "react-redux";
  
  export const JournalEntries = () => {
  	const { notes } = useSelector(state => state.notes);
  	
  	return (
  		<div className="journal__entries">
  			{
  				(notes.length === 0)
  					? <h1>Wait...</h1>
  					: notes.map(note => <JournalEntry key={ note.id } { ...note } />)
  				
  			}
  		</div>
  	);
  };
  