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

Type

Default

String

No Default

Hook Return Value

popoverDetail

Type

Default

PopoverDetail

{ messageId: '', popoverType: undefined }

showPopover

Type

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

hidePopover

Type

Function of type: () => void


What’s Next