'use strict' const React = require('react') const ReactDOM = require('react-dom') const create = require('create-react-class') const defaultValue = require('default-value') const elements = { "m.text": require('./text.js'), "m.image": require('./image.js') } let Event = create({ displayName: "Event", render: function() { let state = "" if (this.props.event.local) { state = " local" } return (