{(item) => (
props.onOpenComment?.(item)}
/>
)}
{(attachment) => {
const image = attachment.mime.startsWith("image/")
const media = () => (
}
>
{typeLabel(attachment.filename, attachment.mime, props.fileLabel)}
}
>

props.onOpen(attachment)}
/>
)
const name = () => (
{attachment.filename}
)
const remove = () => (
)
// v2 keeps the remove button outside the tooltip trigger so hovering it dismisses the tooltip
return (
{media()}
{name()}
{remove()}
}
>
)
}}