import { DEFAULT, documentTypes } from "../constants/documents.js";
import { iconMap } from "../constants/icons.js";
export function getDocumentIconSrc(documentType, customDocumentIconSrc) {
    if (customDocumentIconSrc) {
        return customDocumentIconSrc;
    }
    if (documentTypes.includes(documentType)) {
        return iconMap[documentType];
    }
    return iconMap[DEFAULT];
}
//# sourceMappingURL=get-document-icon-src.js.map