useMessageItemPopover

The purpose of useMessageItemPopover is to control the presence of the popover menu, using exposed states and functions.

Example Usage:
const { popoverDetail, showPopover, hidePopover } = useMessageItemPopover({
  messageId: <Message ID>,
});

Hook Argument

messageId

TypeDefault
StringNo Default

Hook Return Value

popoverDetail

TypeDefault
PopoverDetail{ messageId: '', popoverType: undefined }

showPopover

Type
Function of type: (args: PopoverDetail) => void

hidePopover

Type
Function of type: () => void

What’s Next