import React, { PropTypes } from 'react'; import { themr } from 'react-css-themr'; import classnames from 'classnames'; import { CARD } from '../identifiers.js'; const CardMedia = ({ aspectRatio, children, className, color, contentOverlay, image, theme, ...other }) => { const classes = classnames(theme.cardMedia, { [theme[aspectRatio]]: aspectRatio }, className); const innerClasses = classnames(theme.content, { [theme.contentOverlay]: contentOverlay }); const bgStyle = { backgroundColor: color ? color : undefined, backgroundImage: typeof image === 'string' ? `url('${image}')` : undefined }; return (