import { ERRORS as e } from "@holepunchto/keet-core/legacy-constants"
import { GENERIC_PAIRING_ERROR as o } from "../error"
export const UI_MOBILE_STATE_KEY = "ui-mobile"
export const ERROR_MESSAGES = {
[e.INVITE_EXPIRED]: (e) => e.inviteExpired,
[e.INVALID_INVITATION_TYPE]: (e) => e.invalidInvitation,
[o]: (e) => e.genericPairingError,
}
export const TEMP_ERROR_MESSAGES = {
"UNEXPECTED_ERROR: Removed member cannot rejoin": (e) => e.removedMemberError,
}
export const UI_APP_STATE = {
INIT: "init",
ACTIVE: "active",
INACTIVE: "inactive",
BACKGROUND: "background",
}
export const ROOM_ACTIVITY = { JOIN: "join", LEAVE: "leave", MUTE: "mute", UNMUTE: "unmute" }
export const MAX_AUDIO_SAMPLES = 150