You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
527 B

import * as React from 'react';
import Upload from './Upload';
import { UploadProps } from './interface';
export type DraggerProps = UploadProps & { height?: number };
const InternalDragger: React.ForwardRefRenderFunction<unknown, DraggerProps> = (
{ style, height, ...restProps },
ref,
) => {
return <Upload ref={ref} {...restProps} type="drag" style={{ ...style, height }} />;
};
const Dragger = React.forwardRef(InternalDragger) as React.FC<DraggerProps>;
Dragger.displayName = 'Dragger';
export default Dragger;