import React from 'react' ; import { CommonProps } from '../Group' ; import { CommonShapeProps } from './common' ; export interface ImageStyle extends CommonShapeProps { description description width ? : number ; description description height ? : number ; description description img : string | ImageData | CanvasImageData ; } interface ImageProps extends CommonProps { description style : ImageStyle ; } const Image = ( props ) => { const { children , ... rest } = props ; return ( < div data - attr = { { ... rest , type : 'image' , } } > { children } < /div>); } ; export default Image ;