29 lines
757 B
TypeScript
29 lines
757 B
TypeScript
// Metro module 12608 (f12609).
|
|
import { AbortCodes } from "../../Constants";
|
|
import { intl, t } from "../../intl/index.native";
|
|
import { MAX_TOTAL_ATTACHMENT_SIZE_MB } from "../../utils/UploadUtils";
|
|
export function getAttachmentUploadAbortAlertContent(a0) {
|
|
const title = intl.string(t.B3vFdU);
|
|
if (AbortCodes.TOTAL_ATTACHMENT_SIZE_TOO_LARGE === a0) {
|
|
return {
|
|
title,
|
|
body: intl.formatToPlainString(t.DYFPg2, {
|
|
maxSizeMb: MAX_TOTAL_ATTACHMENT_SIZE_MB
|
|
})
|
|
};
|
|
}
|
|
if (AbortCodes.CLOUD_UPLOAD_NOT_FOUND === a0) {
|
|
return {
|
|
title,
|
|
body: intl.string(t.bQldfH)
|
|
};
|
|
}
|
|
if (AbortCodes.INVALID_PERMISSIONS === a0) {
|
|
return {
|
|
title,
|
|
body: intl.string(t.zl4Weq)
|
|
};
|
|
}
|
|
return null;
|
|
}
|