iconFor

fun iconFor(mimeType: MimeType?, name: String): SparkIcon(source)

Maps a UploadedFile to an icon representing its type.

This is a best-effort mapping based on the mimeType or filename extension and is intentionally simple. Consumers can override the icon used in the preview item if they need more control.