{
-
- /**
- * The className added to this component.
- * @private
- */
- _className = `${CSS_PREFIX}uploadbutton`;
-
- /**
- * The render function.
- */
- render() {
- const {
- className,
- children,
- onChange,
- inputProps,
- ...passThroughProps
- } = this.props;
-
- const finalClassName = className
- ? `${className} ${this._className}`
- : this._className;
-
- const button = ;
-
- return (
-
- {children || button}
-
-
- );
- }
-}
+const UploadButton: React.FC = ({
+ className,
+ children,
+ onChange,
+ inputProps,
+ ...passThroughProps
+}) => {
+
+ const finalClassName = className
+ ? `${className} ${CSS_PREFIX}uploadbutton`
+ : `${CSS_PREFIX}uploadbutton`;
+
+ const button = ;
+
+ return (
+
+ {children || button}
+
+
+ );
+};
export default UploadButton;