21 lines
834 B
TypeScript
21 lines
834 B
TypeScript
// Metro module 9059 (f9060).
|
|
import { ACCEPT_FRIEND_REQUEST_CONFIRMATION_MODAL_ID } from "../Constants";
|
|
import { AnalyticEvents } from "../../../Constants";
|
|
import AnalyticsUtils from "../../../utils/AnalyticsUtils";
|
|
import AlertActionCreators from "../../../actions/native/AlertActionCreators";
|
|
export function openAcceptFriendRequestConfirmModal({ onConfirm, onCancel: onCancel2 }) {
|
|
AnalyticsUtils.track(AnalyticEvents.OPEN_MODAL, {
|
|
type: ACCEPT_FRIEND_REQUEST_CONFIRMATION_MODAL_ID
|
|
});
|
|
AlertActionCreators.openLazy({
|
|
importer: () => import("./native/AcceptRequestConfirmationModal").then(({ default: Component }) => (a0) => {
|
|
return <Component {...a0} onCancel={() => {
|
|
a0.onClose();
|
|
if (onCancel2 != null) {
|
|
onCancel2();
|
|
}
|
|
}} onConfirm={onConfirm} />;
|
|
})
|
|
});
|
|
}
|