spatial-monorepo / verticals/src / useMeetingRoomOccupancy
Function: useMeetingRoomOccupancy()
useMeetingRoomOccupancy(
roomIds?):MeetingRoomOccupancyResult[]
Defined in: packages/verticals/src/components/OfficeProfile.tsx:490
Calls meetingRoomFn with the requested roomIds and maps results to RAG-style occupancy colors. Throws if called outside <OfficeProfile>.
roomIds defaults to a stable empty array (not [] requesting zero rooms) — callers implementing the documented "occupancy per room id" signature must be given the ids they're expected to filter by, or a correct implementation returns nothing for every request (mirrors the useDeskStatus fix for issue #843).
Parameters
roomIds?
string[] = EMPTY_ROOM_IDS
Returns
MeetingRoomOccupancyResult[]
