53 lines
2 KiB
TypeScript
53 lines
2 KiB
TypeScript
// Module ID: 11428
|
|
// Function ID: 11429
|
|
// Name: RefreshChatInputCoachmark
|
|
// Dependencies: [32, 19, 1388, 1367, 6065, 1377, 1236, 4072, 8702, 2]
|
|
// Exports: default, useRefreshChatInputCoachmark
|
|
|
|
// Module 11428 (RefreshChatInputCoachmark)
|
|
import _slicedToArray from "_slicedToArray";
|
|
import noop from "noop";
|
|
import { ContentDismissActionType } from "ContentDismissActionType";
|
|
|
|
const require = arg1;
|
|
const result = require("ContentDismissActionType").fileFinishedImporting("modules/chat_input/native/RefreshChatInputCoachmark.tsx");
|
|
|
|
export default function RefreshChatInputCoachmark(buttonRef) {
|
|
const merged = Object.assign(buttonRef, Object.create(null));
|
|
const coachmark = require(8702) /* useCoachmark */.useCoachmark(buttonRef.buttonRef, merged);
|
|
return null;
|
|
};
|
|
export const useRefreshChatInputCoachmark = function useRefreshChatInputCoachmark(disabled) {
|
|
let _require;
|
|
let importDefault;
|
|
_require(6065);
|
|
if (tmp2) {
|
|
if (!disabled.disabled) {
|
|
let items = [tmp3(1377).DismissibleContent.MOBILE_REFRESH_CHAT_INPUT_PLUS_BUTTON_COACHMARK];
|
|
}
|
|
const tmp7 = callback(tmp5(items), 2);
|
|
_require = tmp8;
|
|
const tmp9 = tmp7[0] === tmp3(1377).DismissibleContent.MOBILE_REFRESH_CHAT_INPUT_PLUS_BUTTON_COACHMARK;
|
|
importDefault = tmp9;
|
|
const items1 = [tmp9, tmp7[1]];
|
|
let memo = null;
|
|
if (tmp9) {
|
|
memo = React.useMemo(() => {
|
|
let obj = { title: null, description: null, position: "top", offsetY: 4, visible: null, onDismiss: null, graphic: null };
|
|
const intl = _undefined(outer1_2[6]).intl;
|
|
obj[0] = intl.string(_undefined(outer1_2[6]).t.eqI1WA);
|
|
const intl2 = _undefined(outer1_2[6]).intl;
|
|
obj[1] = intl2.string(_undefined(outer1_2[6]).t.nxO3NK);
|
|
obj[4] = c1;
|
|
obj[5] = function onDismiss() {
|
|
callback(outer1_5.USER_DISMISS);
|
|
};
|
|
obj = { type: "rive", rive: _undefined(outer1_2[7]).OmnibuttonCoachmarkRive, aspectRatio: "16/9" };
|
|
obj[6] = obj;
|
|
return obj;
|
|
}, items1);
|
|
}
|
|
return memo;
|
|
}
|
|
items = [];
|
|
};
|