import React from 'react';

import refractToComponentsMap from 'refractToComponentMap';

import './attribute.styl'

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

  render() {
    if (!this.props.data) {
      return false;
    }

    var reactComponent = refractToComponentsMap[this.props.data.element];

    return React.createElement(reactComponent, {
      data: this.props.data.content
    });
  }
}

export default AttributeComponent;

@@ -349,16 +349,155 @@
 ment%5D;%0A%0A
+    if (typeof reactComponent === 'undefined') %7B%0A      throw %60Unable to find a rendering component for $%7Bthis.props.data.element%7D%60;%0A    %7D%0A%0A
     retu

Throw an exception when unable to find rendering type