UNPKG

@multisynq/react

Version:

React bindings for Multisynq

10 lines (9 loc) 283 B
import { useSession } from '.'; /** * Hook that gives access to the sessionId. */ export function useSessionId() { var _a; const session = useSession(); return (_a = session === null || session === void 0 ? void 0 : session.id) !== null && _a !== void 0 ? _a : null; }