summaryrefslogtreecommitdiff
path: root/src/core/components/elements/Image/Image.jsx
blob: be2866e740dffb2467894f98147004f200dd9a68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { LazyLoadImage } from "react-lazy-load-image-component"
import "react-lazy-load-image-component/src/effects/opacity.css"

const Image = ({ ...props }) => (
  <LazyLoadImage
    { ...props }
    effect="opacity"
    src={props.src || '/images/noimage.jpeg'}
    alt={props.src ? props.alt : 'Image Not Found - Indoteknik'}
  />
)

Image.defaultProps = LazyLoadImage.defaultProps

export default Image