2026-09-10 19:12:31 +00:00
|
|
|
// Module ID: 10957
|
|
|
|
|
// Function ID: 10958
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: PresenceActivityStatus
|
2026-09-10 19:12:31 +00:00
|
|
|
// Dependencies: [19, 1074, 21, 7790, 9292, 5156, 9981, 10953, 10958, 10952, 10955, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-10 19:12:31 +00:00
|
|
|
// Module 10957 (PresenceActivityStatus)
|
|
|
|
|
import AppsIcon2 from "AppsIcon" /* 5156 */;
|
|
|
|
|
import isEmbeddedActivityDefault from "isEmbeddedActivity" /* 7790 */;
|
|
|
|
|
import GameControllerIcon from "GameControllerIcon" /* 9292 */;
|
|
|
|
|
import MusicIcon from "MusicIcon" /* 9981 */;
|
|
|
|
|
import TvIcon from "TvIcon" /* 10953 */;
|
|
|
|
|
import getActivityStatusTextDefault from "getActivityStatusText" /* 10958 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import noop from "module_19" /* 19 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
require = fn;
|
|
|
|
|
const ActivityTypes = fn(1074).ActivityTypes;
|
|
|
|
|
const jsxProd = fn(21);
|
|
|
|
|
({ jsx: closure_4, Fragment: hasOwnProperty, jsxs: metroRequire } = jsxProd);
|
|
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/activity_status/native/PresenceActivityStatus.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function PresenceActivityStatus(hideText) {
|
|
|
|
|
({ activity, hideIcon } = hideText);
|
|
|
|
|
({ iconStyle, textStyle, maxFontSizeMultiplier } = hideText);
|
|
|
|
|
if (hideIcon === undefined) {
|
|
|
|
|
hideIcon = false;
|
|
|
|
|
}
|
|
|
|
|
let flag = hideText.hideText;
|
|
|
|
|
if (flag === undefined) {
|
|
|
|
|
flag = false;
|
|
|
|
|
}
|
|
|
|
|
if (hideIcon) {
|
|
|
|
|
if (flag) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
if (isEmbeddedActivityDefault(activity)) {
|
|
|
|
|
let AppsIcon = AppsIcon2.AppsIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else if (activity.type === ActivityTypes.PLAYING) {
|
2026-08-24 06:08:38 +00:00
|
|
|
AppsIcon = GameControllerIcon.GameControllerIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (activity.type === tmp3.LISTENING) {
|
2026-08-24 06:08:38 +00:00
|
|
|
AppsIcon = MusicIcon.MusicIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-07-29 08:29:29 +00:00
|
|
|
if (activity.type !== tmp3.WATCHING) {
|
|
|
|
|
if (activity.type !== tmp3.STREAMING) {
|
2026-07-20 16:05:17 +00:00
|
|
|
AppsIcon = null;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (activity.type === tmp3.COMPETING) {
|
2026-08-24 06:08:38 +00:00
|
|
|
AppsIcon = GameControllerIcon.GameControllerIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
AppsIcon = TvIcon.TvIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
let tmp12 = !hideIcon;
|
|
|
|
|
if (!hideIcon) {
|
|
|
|
|
tmp12 = null != AppsIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
if (tmp12) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj = { icon: AppsIcon, style: iconStyle };
|
2026-09-10 19:12:31 +00:00
|
|
|
tmp12 = React4(tmp(10952), obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
const children = [tmp12, ];
|
|
|
|
|
let tmp15 = !flag;
|
|
|
|
|
if (!flag) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj2 = { style: textStyle, maxFontSizeMultiplier, children: getActivityStatusTextDefault(activity, true).text };
|
2026-09-10 19:12:31 +00:00
|
|
|
tmp15 = React4(tmp(10955), obj2);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
children[1] = tmp15;
|
2026-09-10 05:38:07 +00:00
|
|
|
return timestampProducer(hasOwnProperty, { children });
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|