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

66 lines
2.8 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 9350
// Function ID: 9351
2026-07-20 16:05:17 +00:00
// Name: EducationCoachmarkImg
2026-08-24 06:08:38 +00:00
// Dependencies: [32, 19, 17, 1922, 1388, 21, 1377, 4668, 712, 8024, 589, 4042, 7404, 1236, 9351, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 9350 (EducationCoachmarkImg)
import ThemesDefault from "Themes" /* 712 */;
import SuperReactionIcon from "SuperReactionIcon" /* 8024 */;
import closure_3 from "_slicedToArray" /* 32 */;
import closure_4 from "noop" /* 19 */;
import { View } from "get ActivityIndicator" /* 17 */;
import closure_6 from "mergeGuildAvatar" /* 1922 */;
import { ContentDismissActionType } from "ContentDismissActionType" /* 1388 */;
import { jsx } from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-20 16:05:17 +00:00
function EducationCoachmarkImg() {
2026-08-24 06:08:38 +00:00
let obj = { style: callback2().upsellImageContainer, children: null };
obj = { color: ThemesDefault.colors.WHITE, size: "md" };
obj[1] = jsx(SuperReactionIcon.SuperReactionIcon, { color: ThemesDefault.colors.WHITE, size: "md" });
return <View color={ThemesDefault.colors.WHITE} size="md" />;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
let closure_9 = require("DismissibleContent").DismissibleContent.SUPER_REACTION_TOGGLE_EDUCATION_MOBILE;
2026-07-29 08:29:29 +00:00
createCacheKey = { upsellImageContainer: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { backgroundColor: ThemesDefault.colors.BACKGROUND_BRAND, borderRadius: ThemesDefault.radii.round, height: 40, width: 40, display: "flex", alignItems: "center", justifyContent: "center" };
2026-07-29 08:29:29 +00:00
createCacheKey[0] = createCacheKey;
2026-08-24 06:08:38 +00:00
let closure_10 = createCacheKey.createStyles(createCacheKey);
const result = require("set").fileFinishedImporting("modules/reactions/native/useBurstToggleCoachmark.tsx");
2026-07-20 16:05:17 +00:00
export default function useBurstToggleCoachmark(targetRef) {
2026-08-24 06:08:38 +00:00
const items = [closure_6];
2026-07-29 08:29:29 +00:00
const stateFromStores = first(589).useStateFromStores(items, () => currentUser.getCurrentUser());
let obj = first(589);
2026-07-20 16:05:17 +00:00
if (obj2.isPremium(stateFromStores)) {
const items1 = [closure_9];
let items2 = items1;
} else {
items2 = [];
}
2026-08-24 06:08:38 +00:00
let tmpResult = tmp(7404);
2026-07-29 08:29:29 +00:00
const tmp5 = callback(tmpResult.useSelectedDismissibleContent(items2), 2);
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]];
2026-07-20 16:05:17 +00:00
const memo = React.useMemo(() => {
2026-07-29 08:29:29 +00:00
const obj = { description: null, onDismiss: null, position: "bottom", renderImgComponent: null, title: null, visible: null };
2026-08-24 06:08:38 +00:00
const intl = first(closure_1_2[13]).intl;
obj[0] = intl.string(first(closure_1_2[13]).t.nyYohm);
2026-07-29 08:29:29 +00:00
obj[1] = function onDismiss() {
2026-08-24 06:08:38 +00:00
callback(closure_1_7.UNKNOWN);
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
obj[3] = function renderImgComponent() {
return callback2(closure_11, {});
2026-07-20 16:05:17 +00:00
};
2026-08-24 06:08:38 +00:00
const intl2 = first(closure_1_2[13]).intl;
obj[4] = intl2.string(first(closure_1_2[13]).t.ORK94p);
obj[5] = first === closure_1_9;
2026-07-20 16:05:17 +00:00
return obj;
}, items3);
2026-08-24 06:08:38 +00:00
tmpResult = tmp(9351);
2026-07-29 08:29:29 +00:00
const coachmark = tmpResult.useCoachmark(targetRef, memo);
return tmp5[1];
2026-07-20 16:05:17 +00:00
};