import { PureComponent } from 'react'; import Box from '@mui/material/Box'; import Stack from '@mui/material/Stack'; import Typography from '@mui/material/Typography'; import Attachment from './Attachment'; export class AttachmentList extends PureComponent { render() { const { attachments, onRescan, onDelete, onClick, disabled } = this.props; if (!Array.isArray(attachments) || attachments.length === 0) { return null; } return ( Dateianhänge ({attachments.length}) {attachments.map((attachment, index) => ( ))} ); } } export default AttachmentList;