Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 648x 1x 648x 648x | import NiceModal from "@ebay/nice-modal-react";
import { GIVE_NOTIFICATION_MODAL } from "modals/modal_names";
import { GiveNotificationTypes } from "../giveNotificationTypes";
export default function useOpenGiveNotification() {
const handleOpenConversation = (props?: GiveNotificationTypes) => {
NiceModal.show(GIVE_NOTIFICATION_MODAL, props);
};
const handleClose = () => {
NiceModal.remove(GIVE_NOTIFICATION_MODAL);
};
return {
handleOpenConversation,
handleClose,
};
}
|