Valora
API Reference@valora-ai/reactindexFunctions

useParticipantInfo

function useParticipantInfo(props?): {
  identity: string | undefined;
  name: string | undefined;
  metadata: string | undefined;
};

Defined in: packages/react/src/hooks/participant/useParticipantInfo.ts:25

A reactive React primitive.

Parameters

ParameterType
props?UseParticipantInfoProps

Returns

{
  identity: string | undefined;
  name: string | undefined;
  metadata: string | undefined;
}

identity

identity: string | undefined;

name

name: string | undefined;

metadata

metadata: string | undefined;

Example

const { identity, name } = useParticipantInfo({ participant });
return <span>{name ?? identity}</span>;

On this page

Valora is local-first

No API key, no server — everything in this doc runs on-device.

Star on GitHub