
import React from "react";
import "./index.less";
import { Button } from 'antd'
import IconFont from '../../../themeComponents/IconFont';

/**
 * 按钮上传
 * 示例: 人脸图库以图搜图按钮
 */
export const UploadButton = ({
  icon = "icon-L_Bar_AddImg",
  text,
  ...rest
}) => (
  <Button {...rest}>
    {icon && <IconFont type={icon} />}
    {text}
  </Button>
);


