Files
discord-decomp/modules/app_startup/StartupProfiler.tsx
T
2026-11-01 12:12:55 +02:00

83 lines
2.1 KiB
TypeScript

// Metro module 10896 (f10897).
import { Profiler } from "react";
import Module10 from "../../_bundle/Module10";
const r44 = {
App: "App",
AppContainer: "AppContainer",
MainNavigator: "MainNavigator",
StackNavigator: "StackNavigator",
MainTabs: "MainTabs",
MainDrawers: "MainDrawers",
PrivateChannels: "PrivateChannels",
Members: "Members",
LeftPanel: "LeftPanel",
Guilds: "Guilds",
Channels: "Channels",
RightPanel: "RightPanel",
CenterPanel: "CenterPanel",
Channel: "Channel",
ChatView: "ChatView",
Messages: "Messages"
};
let c7334_4 = {};
const setLevels = function setLevels(a0, a1) {
for (const key in a0) {
c7334_4[key] = a1;
setLevels(a0[key], a1 + " ");
}
};
const r22 = {};
const App = r44.App;
const r62 = {};
const AppContainer = r44.AppContainer;
const r63 = {};
const MainNavigator = r44.MainNavigator;
const r16 = {};
const StackNavigator = r44.StackNavigator;
const r18 = {};
const MainTabs = r44.MainTabs;
const r20 = {};
const MainDrawers = r44.MainDrawers;
const r25 = {};
const LeftPanel = r44.LeftPanel;
const r27 = {};
r27[r44.Guilds] = {};
r27[r44.Channels] = {};
r25[LeftPanel] = r27;
const RightPanel = r44.RightPanel;
const r67 = {};
r67[r44.Members] = {};
r25[RightPanel] = r67;
const CenterPanel = r44.CenterPanel;
const r71 = {};
const Channel = r44.Channel;
const r73 = {};
const ChatView = r44.ChatView;
const r31 = {};
r31[r44.Messages] = {};
r73[ChatView] = r31;
r71[Channel] = r73;
r25[CenterPanel] = r71;
r20[MainDrawers] = r25;
r18[MainTabs] = r20;
r16[StackNavigator] = r18;
r63[MainNavigator] = r16;
r62[AppContainer] = r63;
r22[App] = r62;
for (const key in r22) {
c7334_4[key] = "";
const r81 = r22[key];
for (const key2 in r81) {
c7334_4[key2] = " ";
setLevels(r81[key2], " ");
}
}
export default function StartupProfiler(props) {
const { children, profile } = props;
Module10.mark("🎨", `${c7334_4[profile]}${profile} render`);
return <Profiler id={profile} onRender={(event, a1, a2) => {
Module10.mark("🎨", `${c7334_4[profile]}${profile} ${a1}`, a2);
}}>{children}</Profiler>;
};
export { r44 as Profiles };