ifDocumentContent

inline fun <T> ResendableContent.ifDocumentContent(block: (DocumentContent) -> T): T?