import React from 'react'; import classNames from 'classnames'; /** * Display an element with a background image. */ export default class BackgroundImage extends React.Component { static propTypes = { /** The id of the image file to display */ imageFileId: React.PropTypes.number, /** Background position */ position: React.PropTypes.arrayOf(React.PropTypes.number), /** Additional CSS classes. */ className: React.PropTypes.string, /** Used to lazy load images. */ loaded: React.PropTypes.bool } static defaultProps = { position: [50, 50] } render() { return (