spatial-monorepo / verticals/src / useDeskStatus
Function: useDeskStatus()
useDeskStatus(
deskIds?):DeskStatusResult[]
Defined in: packages/verticals/src/components/OfficeProfile.tsx:150
Calls deskStatusFn with the requested deskIds and maps results to RAG colors. Throws if called outside <OfficeProfile>.
deskIds defaults to a stable empty array (not [] requesting zero desks) — callers implementing the documented "desk status per desk id" signature must be given the ids they're expected to filter by, or a correct implementation returns nothing for every request (issue #843).
Parameters
deskIds?
string[] = EMPTY_DESK_IDS
Returns
DeskStatusResult[]
