import { jsx as _jsx } from "react/jsx-runtime";
import { forwardRef } from 'react';
import { usePreviewFileUploader, } from '../hooks/usePreviewFileUploader';
import { PreviewFileUploaderDropZone } from '../PreviewFileUploaderDropZone';
import { FileList } from './FileList';
export const PreviewFileUploader = forwardRef((props, forwardedRef) => {
    const { dropZoneProps, fileListProps } = usePreviewFileUploader(props);
    return (_jsx(PreviewFileUploaderDropZone, { ref: forwardedRef, ...dropZoneProps, children: _jsx(FileList, { ...fileListProps }) }));
});
