48 lines
1.1 KiB
TypeScript
48 lines
1.1 KiB
TypeScript
// Metro module 14942 (f14943).
|
|
import { useToken } from "../../../design/tokens/native/useToken";
|
|
import Module712 from "../../../_bundle/Module712";
|
|
const r13 = {
|
|
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"
|
|
};
|
|
export const GUILD_ITEM_SIZE = 48;
|
|
export const GUILD_LIST_WIDTH = 72;
|
|
export const GUILD_ITEM_EMPTY_SRC = {
|
|
uri: "invalid"
|
|
};
|
|
export const GUILD_ITEM_HIT_SLOP = {
|
|
top: 4,
|
|
left: 12,
|
|
bottom: 4,
|
|
right: 12
|
|
};
|
|
export const GUILD_ITEM_BADGE_SIZE = 16;
|
|
export function useGuildWrapperSize() {
|
|
return useToken(Module712.modules.mobile.GUILD_BAR_ITEM_SIZE) + 2 * useToken(Module712.modules.mobile.GUILD_BAR_ITEM_MARGIN);
|
|
}
|
|
export { r13 as FastListRenderSections };
|
|
export const FOLDER_SPRING_PHYSICS = {
|
|
mass: 0.5,
|
|
damping: 30,
|
|
stiffness: 300
|
|
};
|
|
export const TRANSITION_PHYSICS = {
|
|
mass: 0.5,
|
|
damping: 15,
|
|
stiffness: 120
|
|
};
|