decord/alpha/source/modules/application_widget/presentApplicationWidgetRefreshOutcome.native.tsx
2026-10-12 06:59:38 +00:00

28 lines
1 KiB
TypeScript

// Module ID: 13371
// Function ID: 13372
// Name: presentApplicationWidgetRefreshOutcome
// Dependencies: [13372, 4809, 12622, 4808, 2]
// Exports: default
// Module 13371 (presentApplicationWidgetRefreshOutcome)
import ToastUtils from "ToastUtils" /* 4808 */;
import ToastActionCreatorsDefault from "ToastActionCreators" /* 4809 */;
import RetryIcon from "RetryIcon" /* 12622 */;
import applicationWidgetRefreshOutcomeDefault from "applicationWidgetRefreshOutcome" /* 13372 */;
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);
}
};