import { useJoinSpace } from '@towns-protocol/react-sdk'
function useJoinSpace(
config?: ActionConfig<Spaces["joinSpace"]>,
): {
data: void | undefined;
error: Error | undefined;
isPending: boolean;
isSuccess: boolean;
isError: boolean;
joinSpace: (spaceId: string, signer: Signer, opts?: {
skipMintMembership?: boolean;
} | undefined) => Promise<void>;
}
ActionConfig<Spaces["joinSpace"]>
{
data: void | undefined;
error: Error | undefined;
isPending: boolean;
isSuccess: boolean;
isError: boolean;
joinSpace: (spaceId: string, signer: Signer, opts?: {
skipMintMembership?: boolean;
} | undefined) => Promise<void>;
}