decord/source/modules/tooltip/useCanShowTooltip.tsx

38 lines
1.2 KiB
TypeScript
Raw Normal View History

// Module ID: 9832
// Function ID: 9833
2026-07-20 16:05:17 +00:00
// Name: useCanShowTooltip
// Dependencies: [19, 9833, 504, 9834, 2]
2026-07-20 16:05:17 +00:00
// Exports: useCanShowTooltip
// Module 9832 (useCanShowTooltip)
import TooltipActionCreatorsDefault from "TooltipActionCreators" /* 9834 */;
import noop from "module_19" /* 19 */;
import TooltipStore from "TooltipStore" /* 9833 */;
2026-07-23 10:11:24 +00:00
const require = globalThis.__r;
const require = fn;
const size = fn(2);
const result = size.fileFinishedImporting("modules/tooltip/useCanShowTooltip.tsx");
2026-07-20 16:05:17 +00:00
export const useCanShowTooltip = function useCanShowTooltip(SCREENSHARE_SWIPE_UP_CONTROLS, arg1) {
_require = SCREENSHARE_SWIPE_UP_CONTROLS;
2026-07-29 08:29:29 +00:00
let flag = arg1;
2026-07-20 16:05:17 +00:00
if (arg1 === undefined) {
flag = false;
}
2026-07-29 08:29:29 +00:00
let flag2 = arg2;
if (arg2 === undefined) {
2026-07-20 16:05:17 +00:00
flag2 = true;
}
const items = [TooltipStore];
2026-07-20 16:05:17 +00:00
const items1 = [flag2, flag, SCREENSHARE_SWIPE_UP_CONTROLS];
const stateFromStores = require("initialize").useStateFromStores(items, () => TooltipStore.canShowTooltip(closure_0) && flag2);
const effect = noop.useEffect(() => {
2026-07-20 16:05:17 +00:00
if (flag2) {
TooltipActionCreatorsDefault.attemptToShowTooltip(closure_0, flag);
2026-07-20 16:05:17 +00:00
}
}, items1);
return stateFromStores;
};