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

80 lines
1.7 KiB
TypeScript

// Metro module 4207 (f4208).
let c2427_0 = {
STREAM: 0,
0: "STREAM",
HIDDEN_STREAM: 1,
1: "HIDDEN_STREAM",
USER: 2,
2: "USER",
ACTIVITY: 3,
3: "ACTIVITY"
};
const r14 = {
STREAM: "STREAM",
USER: "USER",
ACTIVITY: "ACTIVITY"
};
const r13 = {
NONE: "NONE",
AUTO: "AUTO"
};
const r12 = {
DESKTOP: 0,
0: "DESKTOP",
MOBILE: 1,
1: "MOBILE",
XBOX: 2,
2: "XBOX",
PLAYSTATION: 3,
3: "PLAYSTATION",
QUEST: 4,
4: "QUEST"
};
const r11 = {
CONTEXT_MENU: "Context Menu",
THREE_DOT: "Three-Dot",
CARET: "Caret",
OTHER_BUTTON: "Other Button"
};
const r37 = {
VIDEO: 0,
0: "VIDEO",
CAMERA_PREVIEW: 1,
1: "CAMERA_PREVIEW",
HAVEN: 2,
2: "HAVEN"
};
const r41 = {};
r41[r37.VIDEO] = 320;
r41[r37.CAMERA_PREVIEW] = 160;
r41[r37.HAVEN] = 320;
const r47 = {};
r47[r37.VIDEO] = 960;
r47[r37.CAMERA_PREVIEW] = 480;
r47[r37.HAVEN] = 960;
const r53 = {};
r53[r37.VIDEO] = 200;
r53[r37.CAMERA_PREVIEW] = 160;
r53[r37.HAVEN] = 200;
export { c2427_0 as ParticipantTypes };
export { r14 as ContextMenuTileTypes };
export { r13 as ParticipantSelectionTypes };
export { r12 as VoicePlatforms };
export { r11 as CallMenuEntrypoint };
export function isStreamParticipant(a0) {
return a0?.type === c2427_0.STREAM || a0?.type === c2427_0.HIDDEN_STREAM;
}
export function isUserParticipant(a0) {
return a0?.type === c2427_0.USER;
}
export function isActivityParticipant(a0) {
return a0?.type === c2427_0.ACTIVITY;
}
export { r37 as PictureInPictureTypes };
export { r41 as DEFAULT_PIP_WIDTH };
export { r47 as MAX_PIP_WIDTH };
export { r53 as MIN_PIP_WIDTH };
export const EMOJI_PICKER_EMOJI_TO_SHOW_COUNT = 8;
export const MIN_CALL_WIDTH = 550;
export const MIN_CALL_HEIGHT = 230;