import React from 'react'; interface FilePreviewProps { files: File[]; imageDataList: string[]; onRemove: (index: number) => void; } const FilePreview: React.FC = ({ files, imageDataList, onRemove }) => { if (!files || files.length === 0) { return null; } return (
{files.map((file, index) => (
{imageDataList[index] && (
{file.name}
)}
))}
); }; export default FilePreview;