Files
discord-decomp/modules/user_profile/native/UserProfileAlertUtils.tsx
T
2026-11-01 12:12:55 +02:00

27 lines
1.4 KiB
TypeScript

// Metro module 11713 (f11714).
import { openAlert } from "../../../design/components/AlertModal/native/useAlertStore.native";
import UserProfileConfirmCancelFriendRequest from "./UserProfileConfirmCancelFriendRequest";
import UserProfileConfirmRemoveFriend from "./UserProfileConfirmRemoveFriend";
import UserProfileConfirmRemoveGameFriend from "./UserProfileConfirmRemoveGameFriend";
import UserProfileConfirmVideoUnstableConnection from "./UserProfileConfirmVideoUnstableConnection";
import UserProfileAlertUserReported from "./UserProfileAlertUserReported";
import UserProfileConfirmThreadRemove from "./UserProfileConfirmThreadRemove";
export function confirmCancelFriendRequest(a0) {
openAlert("cancel-friend-request", <UserProfileConfirmCancelFriendRequest {...a0} />);
}
export function confirmRemoveFriend(a0) {
openAlert("remove-friend", <UserProfileConfirmRemoveFriend {...a0} />);
}
export function confirmRemoveGameFriend(a0) {
openAlert("remove-game-friend", <UserProfileConfirmRemoveGameFriend {...a0} />);
}
export function confirmVideoUnstableConnection(a0) {
openAlert("video-unstable-connection", <UserProfileConfirmVideoUnstableConnection onConfirm={a0} />);
}
export function alertUserReported() {
openAlert("user-reported", <UserProfileAlertUserReported />);
}
export function confirmThreadRemove(a0) {
openAlert("thread-remove", <UserProfileConfirmThreadRemove {...a0} />);
}