15 lines
592 B
TypeScript
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);
|
|
};
|