import { useCreateGdm } from '@towns-protocol/react-sdk'
function useCreateGdm( config?: ActionConfig<Gdms["createGDM"]>, ): { data: { streamId: string; } | undefined; error: Error | undefined; isPending: boolean; isSuccess: boolean; isError: boolean; createGDM: (userIds: string[], channelProperties?: EncryptedData | undefined, streamSettings?: { disableMiniblockCreation: boolean; lightStream: boolean; } | undefined) => Promise<{ streamId: string; }>; }
ActionConfig<Gdms["createGDM"]>
createGDM
{ data: { streamId: string; } | undefined; error: Error | undefined; isPending: boolean; isSuccess: boolean; isError: boolean; createGDM: (userIds: string[], channelProperties?: EncryptedData | undefined, streamSettings?: { disableMiniblockCreation: boolean; lightStream: boolean; } | undefined) => Promise<{ streamId: string; }>; }
Was this page helpful?