- {/* @ts-expect-error; variant is not in the types for some reason? */}
-
- {" "}
-
-
- {activityTypes[activity.type]}
- {!largeImage && ` ${activity.name}`}
-
-
- {largeImage && (
-
-
-
-
- {smallImage && (
-
-
-
-
-
- )}
-
- )}
-
-
{activity.name}
-
{activity.state}
-
{activity.details}
-
-
-
-
-
-
- ).outerHTML;
- }
+ container.current.className = "shj-lang-json";
+ container.current.textContent = JSON.stringify(
+ {
+ status: lanyard.discord_status,
+ activities: lanyard.activities.map((act) => {
+ const type = activityTypes[act.type];
+ const parts = [type];
+ if (act.name !== type) parts.push(act.name);
+ if (act.details) parts.push(act.details);
+ if (act.state) parts.push(act.state);
+ return parts;
+ }),
+ },
+ null,
+ 2,
+ );
+ highlightElement(container.current);
}
});
- return