import React, { Component } from 'react' import { connect } from 'react-redux' import AnnotationForm from './components/annotation.form' import AnnotationIndex from './components/annotation.index' import './annotation.form.css' import './annotation.index.css' class Annotations extends Component { constructor(props){ super(props) } render() { return (
{this.props.annotation.id && }
) } } const mapStateToProps = state => ({ timeline: state.align.timeline, annotation: state.align.annotation, }) export default connect(mapStateToProps)(Annotations)