import { useAdminRedact } from '@towns-protocol/react-sdk'
adminRedact
import { useAdminRedact } from '@towns-protocol/react-sdk' const { adminRedact } = useAdminRedact(streamId) adminRedact({ eventId: messageEventId })
redact
import { useRedact } from '@towns-protocol/react-sdk' const { redact } = useRedact(streamId) redact({ eventId: reactionEventId })
function useAdminRedact( streamId: string, config?: ActionConfig<Channel["adminRedact"]>, ): { data: { eventId: string; } | undefined; error: Error | undefined; isPending: boolean; isSuccess: boolean; isError: boolean; adminRedact: (eventId: string) => Promise<{ eventId: string; }>; }
string
ActionConfig<Channel["adminRedact"]>
{ data: { eventId: string; } | undefined; error: Error | undefined; isPending: boolean; isSuccess: boolean; isError: boolean; adminRedact: (eventId: string) => Promise<{ eventId: string; }>; }
Was this page helpful?