content: import React from 'react'
  
  import Item  from './Item'
  import api   from '../api'
  
  export default React.createClass({
    getInitialState() {
      return {item: null}
    },
  
    componentWillMount() {
      if(!this.state.item) {
        api.fetchItem(this.props.loot.item)
          .then(json => {
            this.setState({item: json.data[0]})
          })
      }
    },
  
    render() {
      if(!this.state.item)
        return null
  
      return (
        <div className="encounter-loot-item">
          <Item item={this.state.item} receiver={this.props.loot.receiver} />
        </div>
      )
    }
  })
  