avocado-old/packages/react/image.coffee
2019-03-17 23:45:48 -05:00

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