import React from 'react';
import Connection from '../../Connection.js'

class Note extends React.Component {
  constructor(props){
    super(props);
  }

  saveNote(note){
    // this can be invoked when in the compiled view
    // send it to the redis cache
  }

  playNote(note){
    // this can be invoked when in the review view
  }

  render(){
    var view;

    //props.page will be obtained from redux store.
    if (this.props.view === 'Compiled') {
      view = (
        <div className="note">
          'this is a note in compiled'{/*this.props.note*/}
        </div>
      )
    } else if (this.props.view === 'Lecture'){
      view = (
        <div className="note">
          {this.props.note.content + this.props.note.audioTimestamp}
        </div>)
    } else if (this.props.view === 'Review') {
      view = (
        <div className="note">
          'this is a note in review'{/*this.props.note*/}
        </div>
      )
    }

    return view
  }
}


export default Connection(Note)
import React from 'react';
import Connection from '../../Connection.js'

class Note extends React.Component {
  constructor(props){
    super(props);
  }

  saveNote(note){
    // this can be invoked when in the compiled view
    // send it to the redis cache
  }

  playNote(note){
    // this can be invoked when in the review view
  }

  render(){
    var view;

    //props.page will be obtained from redux store.
    if (this.props.view === 'Compiled') {
      view = (
        <div className="note">
          'this is a note in compiled'{/*this.props.note*/}
        </div>
      )
    } else if (this.props.view === 'Lecture'){
      view = (
        <div className="note">
          {this.props.note.content + ' ' + this.props.note.audioTimestamp}
        </div>)
    } else if (this.props.view === 'Review') {
      view = (
        <div className="note">
          'this is a note in review'{/*this.props.note*/}
        </div>
      )
    }

    return view
  }
}


export default Connection(Note)
Put space between note message and timestamp
Put space between note message and timestamp
