import React from 'react';
import { Popover } from 'antd';
import Image from './Image';

const PopoverDom = ({ name, url }) => {
  const content = <Image width={300} url={url} />;
  return (
    <Popover content={content} title={name}>
      {Image({ width: 50, url })}
    </Popover>
  );
};

export default PopoverDom;
