UNPKG

contiago-toolbar

Version:

One of the options for outputting content from contiago xml-server

22 lines (19 loc) 582 B
import React from 'react'; import { convertImagePathToUrl } from 'utils/imagesUtil'; import { MdSearch } from 'react-icons/lib/md'; import Wrapper from './Wrapper'; import Img from './Img'; import HoverPreview from './HoverPreview'; const ImageItem = ({ image, size, iconSize }) => { const { title, path } = image; const link = convertImagePathToUrl(path); return ( <Wrapper size={size}> <Img src={link} alt={title} size={size} /> <HoverPreview iconSize={iconSize}> <MdSearch /> </HoverPreview> </Wrapper> ); }; export default ImageItem;