decord/source/actions/native/DisplayedInviteActionCreators.tsx

30 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-09-02 09:53:35 +00:00
// Module ID: 8879
// Function ID: 8880
2026-07-20 16:05:17 +00:00
// Name: showInvite
2026-09-02 09:53:35 +00:00
// Dependencies: [8880, 706, 8664, 2]
2026-07-20 16:05:17 +00:00
// Exports: clearDisplayedInvite, showInvite
2026-09-02 09:53:35 +00:00
// Module 8879 (showInvite)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
2026-09-02 09:53:35 +00:00
import dispatcherDefault from "dispatcher" /* 706 */;
import generateAcceptInviteOptionsDefault from "generateAcceptInviteOptions" /* 8664 */;
import getDisplayedInviteCode from "getDisplayedInviteCode" /* 8880 */;
2026-08-24 06:08:38 +00:00
const result = set.fileFinishedImporting("actions/native/DisplayedInviteActionCreators.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export const showInvite = function showInvite(code, username, arg2) {
2026-07-20 16:05:17 +00:00
let obj = arg2;
2026-07-29 08:29:29 +00:00
if (arg2 == null) {
2026-07-20 16:05:17 +00:00
obj = {};
}
2026-08-04 08:36:32 +00:00
({ deeplinkAttemptId, location: _location } = obj);
2026-08-24 06:08:38 +00:00
getDisplayedInviteCode;
2026-08-04 08:36:32 +00:00
obj = { type: "DISPLAYED_INVITE_SHOW", code, username, deeplinkAttemptId };
2026-08-24 06:08:38 +00:00
dispatcherDefault.dispatch(obj);
const obj2 = dispatcherDefault;
const invite = generateAcceptInviteOptionsDefault.resolveInvite(code, _location);
2026-07-20 16:05:17 +00:00
};
export const clearDisplayedInvite = function clearDisplayedInvite() {
2026-08-24 06:08:38 +00:00
dispatcherDefault.dispatch({ type: "DISPLAYED_INVITE_CLEAR" });
2026-07-20 16:05:17 +00:00
};