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
messageIdType | Default |
|---|---|
String | No Default |
Hook Return Value
popoverDetail
popoverDetailType | Default |
|---|---|
{ messageId: '', popoverType: undefined } |
showPopover
showPopoverType |
|---|
Function of type: (args: PopoverDetail) => void |
hidePopover
hidePopoverType |
|---|
Function of type: |
Updated 22 days ago
What’s Next
