import React from 'react'; import Icon from 'soapbox/components/icon'; import type { Attachment as AttachmentEntity } from 'soapbox/types/entities'; const filename = (url: string) => url.split('/').pop()!.split('#')[0].split('?')[0]; interface IAttachmentList { media: AttachmentEntity[], compact?: boolean, } const AttachmentList: React.FC = ({ media, compact }) => { if (compact) { return (
); } return (
); }; export default AttachmentList;