decord/source/modules/chat_input/native/RefreshChatInputCoachmark.tsx

59 lines
2.1 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 11100
// Function ID: 86264
2026-07-20 16:05:17 +00:00
// Name: RefreshChatInputCoachmark
2026-07-25 08:10:48 +00:00
// Dependencies: [57, 31, 1345, 1324, 8379, 1334, 1212, 3843, 8368, 2]
2026-07-20 16:05:17 +00:00
// Exports: default, useRefreshChatInputCoachmark
2026-07-27 11:26:19 +00:00
// Module 11100 (RefreshChatInputCoachmark)
2026-07-23 10:11:24 +00:00
import _slicedToArray from "_slicedToArray";
import result from "result";
import { ContentDismissActionType } from "ContentDismissActionType";
const require = arg1;
const result = require("ContentDismissActionType").fileFinishedImporting("modules/chat_input/native/RefreshChatInputCoachmark.tsx");
2026-07-20 16:05:17 +00:00
export default function RefreshChatInputCoachmark(buttonRef) {
let obj = Object.create(null);
obj.buttonRef = 0;
const merged = Object.assign(buttonRef, obj);
2026-07-25 08:10:48 +00:00
obj = require(8368) /* useCoachmark */;
2026-07-20 16:05:17 +00:00
const coachmark = obj.useCoachmark(buttonRef.buttonRef, merged);
return null;
};
export const useRefreshChatInputCoachmark = function useRefreshChatInputCoachmark(disabled) {
2026-07-23 10:11:24 +00:00
let _require;
2026-07-20 16:05:17 +00:00
let importDefault;
2026-07-25 08:10:48 +00:00
_require(8379);
2026-07-20 16:05:17 +00:00
if (tmp) {
if (!disabled.disabled) {
2026-07-23 10:11:24 +00:00
let items = [_require(1334).DismissibleContent.MOBILE_REFRESH_CHAT_INPUT_PLUS_BUTTON_COACHMARK];
2026-07-20 16:05:17 +00:00
}
const tmp7 = callback(tmp3(items), 2);
2026-07-23 10:11:24 +00:00
_require = tmp8;
const tmp11 = tmp7[0] === _require(1334).DismissibleContent.MOBILE_REFRESH_CHAT_INPUT_PLUS_BUTTON_COACHMARK;
2026-07-20 16:05:17 +00:00
importDefault = tmp11;
const items1 = [tmp11, tmp7[1]];
let memo = null;
if (tmp11) {
memo = React.useMemo(() => {
let obj = {};
2026-07-23 10:11:24 +00:00
const intl = _undefined(outer1_2[6]).intl;
obj.title = intl.string(_undefined(outer1_2[6]).t.eqI1WA);
const intl2 = _undefined(outer1_2[6]).intl;
obj.description = intl2.string(_undefined(outer1_2[6]).t.nxO3NK);
2026-07-20 16:05:17 +00:00
obj.position = "top";
obj.offsetY = 4;
2026-07-23 10:11:24 +00:00
obj.visible = c1;
2026-07-20 16:05:17 +00:00
obj.onDismiss = function onDismiss() {
2026-07-23 10:11:24 +00:00
outer1_0(outer2_5.USER_DISMISS);
2026-07-20 16:05:17 +00:00
};
2026-07-23 10:11:24 +00:00
obj = { type: "rive", rive: _undefined(outer1_2[7]).OmnibuttonCoachmarkRive, aspectRatio: "16/9" };
2026-07-20 16:05:17 +00:00
obj.graphic = obj;
return obj;
}, items1);
}
return memo;
}
items = [];
};