Files
discord-decomp/modules/contact_sync/native/components/ContactSyncBackToLanding.tsx
T
2026-11-01 12:12:55 +02:00

15 lines
592 B
TypeScript

// Metro module 11793 (f11794).
import { useNavigation } from "../../../../design/components/Navigator/native/useNavigation.native";
import { getHeaderBackButton } from "../../../../design/components/Navigator/native/NavigatorHeader.native";
import { goBackToLanding } from "../ContactSyncModalActionCreators";
export default function ContactSyncBackToLanding(a0) {
const navigation = useNavigation();
return getHeaderBackButton(() => {
if (a0.navigateToLandingPage != null) {
a0.navigateToLandingPage();
} else {
goBackToLanding(navigation);
}
}, true)(a0);
};