decord/source/modules/reactions/native/useBurstToggleCoachmark.tsx

66 lines
2.7 KiB
TypeScript
Raw Normal View History

// Module ID: 11279
// Function ID: 11280
// Name: useBurstToggleCoachmark
// Dependencies: [32, 19, 17, 1372, 1955, 21, 1944, 4638, 576, 9516, 504, 4295, 7498, 1115, 11280, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 11279 (useBurstToggleCoachmark)
import nativeDefault from "native" /* 576 */;
import util from "util" /* 1115 */;
import SuperReactionIcon from "SuperReactionIcon" /* 9516 */;
import _slicedToArray from "module_32" /* 32 */;
import noop from "module_19" /* 19 */;
import UserStore from "UserStore" /* 1372 */;
2026-07-23 10:11:24 +00:00
require = fn;
2026-07-20 16:05:17 +00:00
function EducationCoachmarkImg() {
const obj = { style: closure_10().upsellImageContainer, children: jsx(SuperReactionIcon.SuperReactionIcon, { color: nativeDefault.colors.WHITE, size: "md" }) };
return <View style={closure_10().upsellImageContainer}>{jsx(SuperReactionIcon.SuperReactionIcon, { color: nativeDefault.colors.WHITE, size: "md" })}</View>;
2026-07-20 16:05:17 +00:00
}
const View = fn(17).View;
const ContentDismissActionType = fn(1955).ContentDismissActionType;
const jsx = fn(21).jsx;
let closure_9 = fn(1944).DismissibleContent.SUPER_REACTION_TOGGLE_EDUCATION_MOBILE;
const createStyles = fn(4638);
let obj2 = { upsellImageContainer: null };
let size = { backgroundColor: nativeDefault.colors.BACKGROUND_BRAND, borderRadius: nativeDefault.radii.round, height: 40, width: 40, display: "flex", alignItems: "center", justifyContent: "center" };
obj2.upsellImageContainer = size;
let closure_10 = createStyles.createStyles(obj2);
size = fn(2);
const result = size.fileFinishedImporting("modules/reactions/native/useBurstToggleCoachmark.tsx");
2026-07-20 16:05:17 +00:00
export default function useBurstToggleCoachmark(targetRef) {
const items = [UserStore];
const stateFromStores = first(504).useStateFromStores(items, () => currentUser.getCurrentUser());
let obj = first(504);
2026-07-20 16:05:17 +00:00
if (obj2.isPremium(stateFromStores)) {
const items1 = [closure_9];
let items2 = items1;
} else {
items2 = [];
}
obj2 = first(4295);
const tmp5 = _slicedToArray(first(7498).useSelectedDismissibleContent(items2), 2);
2026-07-29 08:29:29 +00:00
first = tmp5[0];
2026-08-24 06:08:38 +00:00
closure_1 = tmp7;
2026-07-29 08:29:29 +00:00
const items3 = [first, tmp5[1]];
const memo = noop.useMemo(() => {
2026-07-29 08:29:29 +00:00
const obj = { description: null, onDismiss: null, position: "bottom", renderImgComponent: null, title: null, visible: null };
const intl = util.intl;
obj.description = intl.string(util.t.nyYohm);
obj.onDismiss = function onDismiss() {
closure_1_1(constants.UNKNOWN);
2026-07-20 16:05:17 +00:00
};
obj.renderImgComponent = function renderImgComponent() {
return closure_1_8(closure_1_11, {});
2026-07-20 16:05:17 +00:00
};
const intl2 = util.intl;
obj.title = intl2.string(util.t.ORK94p);
obj.visible = first === closure_9;
2026-07-20 16:05:17 +00:00
return obj;
}, items3);
const tmpResult = first(7498);
const coachmark = first(11280).useCoachmark(targetRef, memo);
2026-07-29 08:29:29 +00:00
return tmp5[1];
2026-07-20 16:05:17 +00:00
};