decord/alpha/source/modules/application_widget/presentApplicationWidgetRefreshOutcome.native.tsx
2026-10-13 12:43:34 +00:00

28 lines
1 KiB
TypeScript

// Module ID: 11501
// Function ID: 11502
// Name: presentApplicationWidgetRefreshOutcome
// Dependencies: [11502, 4809, 11303, 4808, 2]
// Exports: default
// Module 11501 (presentApplicationWidgetRefreshOutcome)
import ToastUtils from "ToastUtils" /* 4808 */;
import ToastActionCreatorsDefault from "ToastActionCreators" /* 4809 */;
import RetryIcon from "RetryIcon" /* 11303 */;
import applicationWidgetRefreshOutcomeDefault from "applicationWidgetRefreshOutcome" /* 11502 */;
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/application_widget/presentApplicationWidgetRefreshOutcome.native.tsx");
export default function presentApplicationWidgetRefreshOutcome(arg0) {
const tmp3 = applicationWidgetRefreshOutcomeDefault(arg0);
const text = tmp3.text;
if (tmp3.ok) {
const obj2 = { text, icon: RetryIcon.RetryIcon };
const open = tmp(4809).open;
ToastActionCreatorsDefault;
open("APPLICATION_WIDGET_REFRESH", obj2);
} else {
const obj = ToastUtils;
obj.presentError(text);
}
};