import { useCreateChannel } from '@towns-protocol/react-sdk'
function useCreateChannel( spaceId: string, config?: ActionConfig<Space["createChannel"]>, ): { data: string | undefined; error: Error | undefined; isPending: boolean; isSuccess: boolean; isError: boolean; createChannel: (channelName: string, signer: Signer, opts?: { topic?: string; } | undefined) => Promise<string>; }
string
ActionConfig<Space["createChannel"]>
createChannel
{ data: string | undefined; error: Error | undefined; isPending: boolean; isSuccess: boolean; isError: boolean; createChannel: (channelName: string, signer: Signer, opts?: { topic?: string; } | undefined) => Promise<string>; }
Was this page helpful?