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

55 lines
2.1 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 11210
// Function ID: 11211
2026-07-20 16:05:17 +00:00
// Name: RefreshChatInputCoachmark
2026-08-24 06:08:38 +00:00
// Dependencies: [32, 19, 1388, 1367, 7404, 1377, 1236, 4107, 9351, 2]
2026-07-20 16:05:17 +00:00
// Exports: default, useRefreshChatInputCoachmark
2026-08-24 06:08:38 +00:00
// Module 11210 (RefreshChatInputCoachmark)
import useCoachmark from "useCoachmark" /* 9351 */;
import closure_3 from "_slicedToArray" /* 32 */;
import closure_4 from "noop" /* 19 */;
import { ContentDismissActionType } from "ContentDismissActionType" /* 1388 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
const result = require("set").fileFinishedImporting("modules/chat_input/native/RefreshChatInputCoachmark.tsx");
2026-07-20 16:05:17 +00:00
export default function RefreshChatInputCoachmark(buttonRef) {
2026-07-29 08:29:29 +00:00
const merged = Object.assign(buttonRef, Object.create(null));
2026-08-24 06:08:38 +00:00
const coachmark = useCoachmark.useCoachmark(buttonRef.buttonRef, merged);
2026-07-20 16:05:17 +00:00
return null;
};
export const useRefreshChatInputCoachmark = function useRefreshChatInputCoachmark(disabled) {
2026-07-23 10:11:24 +00:00
let _require;
2026-08-24 06:08:38 +00:00
importDefault = undefined;
_require(7404);
2026-07-29 08:29:29 +00:00
if (tmp2) {
2026-07-20 16:05:17 +00:00
if (!disabled.disabled) {
2026-08-11 06:20:06 +00:00
let items = [tmp3(1377).DismissibleContent.MOBILE_REFRESH_CHAT_INPUT_PLUS_BUTTON_COACHMARK];
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const tmp7 = callback(tmp5(items), 2);
2026-07-23 10:11:24 +00:00
_require = tmp8;
2026-08-11 06:20:06 +00:00
const tmp9 = tmp7[0] === tmp3(1377).DismissibleContent.MOBILE_REFRESH_CHAT_INPUT_PLUS_BUTTON_COACHMARK;
2026-07-29 08:29:29 +00:00
importDefault = tmp9;
const items1 = [tmp9, tmp7[1]];
2026-07-20 16:05:17 +00:00
let memo = null;
2026-07-29 08:29:29 +00:00
if (tmp9) {
2026-07-20 16:05:17 +00:00
memo = React.useMemo(() => {
2026-07-29 08:29:29 +00:00
let obj = { title: null, description: null, position: "top", offsetY: 4, visible: null, onDismiss: null, graphic: null };
2026-08-24 06:08:38 +00:00
const intl = callback(closure_1_2[6]).intl;
obj[0] = intl.string(callback(closure_1_2[6]).t.eqI1WA);
const intl2 = callback(closure_1_2[6]).intl;
obj[1] = intl2.string(callback(closure_1_2[6]).t.nxO3NK);
obj[4] = closure_1;
2026-07-29 08:29:29 +00:00
obj[5] = function onDismiss() {
2026-08-24 06:08:38 +00:00
callback(closure_1_5.USER_DISMISS);
2026-07-20 16:05:17 +00:00
};
2026-08-24 06:08:38 +00:00
obj = { type: "rive", rive: callback(closure_1_2[7]).OmnibuttonCoachmarkRive, aspectRatio: "16/9" };
2026-07-29 08:29:29 +00:00
obj[6] = obj;
2026-07-20 16:05:17 +00:00
return obj;
}, items1);
}
return memo;
}
items = [];
};