22 lines
450 B
CoffeeScript
22 lines
450 B
CoffeeScript
import PropTypes from 'prop-types';
|
|
import React from 'react'
|
|
import {connect} from 'react-redux'
|
|
import {all, call, put, takeEvery} from 'redux-saga/effects'
|
|
|
|
import {Image, Sprite} from '@avocado/graphics'
|
|
|
|
import {processActions} from './util'
|
|
|
|
class ImageComponent extends React.Component
|
|
|
|
@defaultProps: image: null
|
|
|
|
image: -> @props.image
|
|
|
|
render: ->
|
|
|
|
@props.setIntoSprite? @props.image
|
|
return null
|
|
|
|
export default ImageComponent
|