Skip to main content

Function: useCurrentPassage()

useCurrentPassage(): Passage | null

Defined in: hooks/useCurrentPassage.ts:13

Retrieves the current passage in the game based on the reactive game state. If there is no current passage ID, the function returns null.

Returns

Passage | null

The current passage object, or null if no passage is active.