import { PictureOutlined } from '@ant-design/icons';
import { Button, Tooltip } from 'antd';
import React from 'react';

interface UploadPhotoProps {
  text: string;
  onClick: () => void;
}

const UploadPhoto: React.FC<UploadPhotoProps> = ({ text, onClick }) => {
  return (
    <Tooltip title={text}>
      <Button
        onClick={onClick}
        shape="default"
        size="small"
        icon={<PictureOutlined />}
      />
    </Tooltip>
  );
};

export default UploadPhoto;
