export const SENDOUQ = {
	SZ_MAP_COUNT: 6,
	OTHER_MODE_MAP_COUNT: 3,
	MAX_STAGE_REPEAT_COUNT: 2,
	OWN_PUBLIC_NOTE_MAX_LENGTH: 160,
	PRIVATE_USER_NOTE_MAX_LENGTH: 280,
} as const;

export const FRIEND_CODE_REGEXP_PATTERN =
	"^(SW-)?[0-9]{4}-?[0-9]{4}-?[0-9]{4}$";
export const FRIEND_CODE_REGEXP = new RegExp(FRIEND_CODE_REGEXP_PATTERN);

export const FULL_GROUP_SIZE = 4;

export const SENDOUQ_BEST_OF = 7;

export const ACTION_TAB_AFTER_LOCKED_SECONDS = 24 * 60 * 60; // 24 hours

export const JOIN_CODE_SEARCH_PARAM_KEY = "join";

/** Skalop topic that every user on the looking page subscribes to. */
export const SENDOUQ_LOOKING_ROOM = "sq-looking";

/**
 * Skalop topic for revalidation messages targeted at a single group (e.g. a
 * received like)
 * */
export const sqGroupWebsocketRoom = (groupId: number) => `sq-group__${groupId}`;

export const USER_SKILLS_CACHE_KEY = "user-skills";

/** Breakpoint (in px) for the main container after which we switch from 3-column layout to tabs */
export const IS_Q_LOOKING_MOBILE_BREAKPOINT = 700;
