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