text: import React from 'react';
  import styles from './Image.module.css';
  
  const Image = ({radiusBorder, alt, ...props}) => {
    const [skeleton, setSkeleton] = React.useState(true);
   
    function handleLoad({ target }) {
      setSkeleton(false);
      target.style.opacity = 1;
    }
    return (
      <div className={ styles.wrapper } >
        {skeleton && <div className={ styles.skeleton } style={{borderRadius: `${radiusBorder || ''}`}}></div>}
        <img onLoad={ handleLoad } className={ styles.img } alt={ alt } { ...props } />
      </div>
    )
  }
  
  export default Image;