UNPKG

@multisynq/react

Version:

React bindings for Multisynq

9 lines (8 loc) 371 B
import { useView } from './useView'; /** Hook that gives access to the id of the client. This can be used as an identifier for different clients. */ export function useViewId() { var _a; const multisynqView = useView(); return (_a = multisynqView === null || multisynqView === void 0 ? void 0 : multisynqView.viewId) !== null && _a !== void 0 ? _a : null; }