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

53 lines
2 KiB
TypeScript
Raw Normal View History

// Module ID: 11989
// Function ID: 11990
2026-07-20 16:05:17 +00:00
// Name: RefreshChatInputCoachmark
// Dependencies: [32, 19, 1954, 7388, 1943, 1114, 4271, 11132, 2]
2026-07-20 16:05:17 +00:00
// Exports: default, useRefreshChatInputCoachmark
// Module 11989 (RefreshChatInputCoachmark)
import useCoachmark from "useCoachmark" /* 11132 */;
2026-08-31 15:47:37 +00:00
import closure_2 from "_slicedToArray" /* 32 */;
import closure_3 from "noop" /* 19 */;
import { ContentDismissActionType } from "ContentDismissActionType" /* 1954 */;
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-31 15:47:37 +00:00
dependencyMap = undefined;
if (disabled.disabled) {
let items = [];
} else {
items = [tmp(1943).DismissibleContent.MOBILE_REFRESH_CHAT_INPUT_PLUS_BUTTON_COACHMARK];
2026-07-20 16:05:17 +00:00
}
const tmp3 = callback(_require(7388).useSelectedDismissibleContent(items), 2);
2026-08-31 15:47:37 +00:00
_require = tmp4;
const tmp5 = tmp3[0] === _require(1943).DismissibleContent.MOBILE_REFRESH_CHAT_INPUT_PLUS_BUTTON_COACHMARK;
2026-08-31 15:47:37 +00:00
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);
2026-08-31 15:47:37 +00:00
obj[4] = dependencyMap;
obj[5] = function onDismiss() {
callback(closure_1_4.USER_DISMISS);
};
obj = { type: "rive", rive: callback(4271).OmnibuttonCoachmarkRive, aspectRatio: "16/9" };
2026-08-31 15:47:37 +00:00
obj[6] = obj;
return obj;
}, items1);
}
return memo;
2026-07-20 16:05:17 +00:00
};