decord/source/modules/guilds_bar/native/GuildsBarConstants.tsx

28 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 15613
// Function ID: 15614
2026-07-20 16:05:17 +00:00
// Name: GUILD_ITEM_SIZE
2026-08-24 06:08:38 +00:00
// Dependencies: [4100, 712, 2]
2026-07-20 16:05:17 +00:00
// Exports: useGuildWrapperSize
2026-08-24 06:08:38 +00:00
// Module 15613 (GUILD_ITEM_SIZE)
import set from "set" /* 2 */;
import ThemesDefault from "Themes" /* 712 */;
import map from "map" /* 4100 */;
const result = set.fileFinishedImporting("modules/guilds_bar/native/GuildsBarConstants.tsx");
2026-07-20 16:05:17 +00:00
export const GUILD_ITEM_SIZE = 48;
export const GUILD_LIST_WIDTH = 72;
export const GUILD_ITEM_EMPTY_SRC = { uri: "invalid" };
2026-07-23 10:11:24 +00:00
export const GUILD_ITEM_HIT_SLOP = { top: 4, left: 12, bottom: 4, right: 12 };
2026-07-20 16:05:17 +00:00
export const GUILD_ITEM_BADGE_SIZE = 16;
2026-08-12 06:57:52 +00:00
export const GUILD_ITEM_INSET_LEFT = 12;
2026-07-20 16:05:17 +00:00
export const useGuildWrapperSize = function useGuildWrapperSize() {
2026-08-24 06:08:38 +00:00
const token = map.useToken(ThemesDefault.modules.mobile.GUILD_BAR_ITEM_SIZE);
const obj = map;
return token + 2 * map.useToken(ThemesDefault.modules.mobile.GUILD_BAR_ITEM_MARGIN);
2026-07-20 16:05:17 +00:00
};
export const FastListRenderSections = { MESSAGES: 0, [0]: "MESSAGES", FAVORITES: 1, [1]: "FAVORITES", PENDING_JOIN_REQUESTS: 2, [2]: "PENDING_JOIN_REQUESTS", LURKING_GUILDS: 3, [3]: "LURKING_GUILDS", GUEST_GUILDS: 4, [4]: "GUEST_GUILDS", UNREAD_PRIVATE_CHANNELS: 5, [5]: "UNREAD_PRIVATE_CHANNELS", SEPARATOR: 6, [6]: "SEPARATOR", GUILDS: 7, [7]: "GUILDS" };
2026-07-23 10:11:24 +00:00
export const FOLDER_SPRING_PHYSICS = { mass: 0.5, damping: 30, stiffness: 300 };
export const TRANSITION_PHYSICS = { mass: 0.5, damping: 15, stiffness: 120 };