Skip to main content

useChatroomMenuOptions

Introduction

The useChatroomMenuOptions hook provides you with the chatroom menu options. You can use this hook to create your own custom UI for chatroom menu options.

PropertyTypeDescriptionOptional
onMuteZeroArgVoidReturnsMutes the chatroom.
onViewParticipantsOneArgVoidReturns<string | number>Views the participants of the chatroom.
onLeaveChatroomZeroArgVoidReturnsLeaves the chatroom.
onBlockZeroArgVoidReturnsBlocks a user in the chatroom.
onUnBlockZeroArgVoidReturnsUnblocks a user in the chatroom.

Reference

For reference checkout this file