import React from 'react' ; import { Img , ImgProps } from 'react-image' ; import { isBrowser } from '../utils' ; export const GracefulImage = ( props ) => { if ( isBrowser ) { return < Img { ... props } / > ; } else { return < img { ... props } / > ; } } ;