How do you recommend implementing the frontend rendering logic to handle custom types of attachments/files? Could you explain how to customize the attachment component for i