decord/source/modules/chat_input/native/RefreshChatInputCoachmark.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

52 lines
2 KiB
TypeScript

// Module ID: 11985
// Function ID: 11986
// Name: RefreshChatInputCoachmark
// Dependencies: [32, 19, 1954, 7388, 1943, 1114, 4271, 11127, 2]
// Exports: default, useRefreshChatInputCoachmark
// Module 11985 (RefreshChatInputCoachmark)
import useCoachmark from "useCoachmark" /* 11127 */;
import closure_2 from "_slicedToArray" /* 32 */;
import closure_3 from "noop" /* 19 */;
import { ContentDismissActionType } from "ContentDismissActionType" /* 1954 */;
require = arg1;
const result = require("set").fileFinishedImporting("modules/chat_input/native/RefreshChatInputCoachmark.tsx");
export default function RefreshChatInputCoachmark(buttonRef) {
const merged = Object.assign(buttonRef, Object.create(null));
const coachmark = useCoachmark.useCoachmark(buttonRef.buttonRef, merged);
return null;
};
export const useRefreshChatInputCoachmark = function useRefreshChatInputCoachmark(disabled) {
let _require;
dependencyMap = undefined;
if (disabled.disabled) {
let items = [];
} else {
items = [tmp(1943).DismissibleContent.MOBILE_REFRESH_CHAT_INPUT_PLUS_BUTTON_COACHMARK];
}
const tmp3 = callback(_require(7388).useSelectedDismissibleContent(items), 2);
_require = tmp4;
const tmp5 = tmp3[0] === _require(1943).DismissibleContent.MOBILE_REFRESH_CHAT_INPUT_PLUS_BUTTON_COACHMARK;
dependencyMap = tmp5;
const items1 = [tmp5, tmp3[1]];
let memo = null;
if (tmp5) {
memo = React.useMemo(() => {
let obj = { title: null, description: null, position: "top", offsetY: 4, visible: null, onDismiss: null, graphic: null };
const intl = callback(1114).intl;
obj[0] = intl.string(callback(1114).t.eqI1WA);
const intl2 = callback(1114).intl;
obj[1] = intl2.string(callback(1114).t.nxO3NK);
obj[4] = dependencyMap;
obj[5] = function onDismiss() {
callback(closure_1_4.USER_DISMISS);
};
obj = { type: "rive", rive: callback(4271).OmnibuttonCoachmarkRive, aspectRatio: "16/9" };
obj[6] = obj;
return obj;
}, items1);
}
return memo;
};