pokerogue/src/enums/admin-mode.ts
Wlowscha f8edaeb1ae
[Misc][UI/UX] See stats of other users in admin panel (#6579)
* Game stats ui handler takes save data as input

* Make admin panel functional for local testing

* Added button to show stats; mocking for local testing with current save data

* Adding pokédex to admin panel

* Many nice things

* Fixed typo

* Add backend support

* Fixed button width in admin panel

* Apply suggestions from code review

---------

Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
2025-09-27 14:44:29 -07:00

24 lines
502 B
TypeScript

export const AdminMode = Object.freeze({
LINK: 0,
SEARCH: 1,
ADMIN: 2,
});
export type AdminMode = (typeof AdminMode)[keyof typeof AdminMode];
/**
* Get the name of the admin mode.
* @param adminMode - The admin mode.
* @returns The Uppercase name of the admin mode.
*/
export function getAdminModeName(adminMode: AdminMode): string {
switch (adminMode) {
case AdminMode.LINK:
return "Link";
case AdminMode.SEARCH:
return "Search";
default:
return "";
}
}