diff --git a/src/components/backgrounds/BackgroundWithBeasyIconAndWhiteContentArea.tsx b/src/components/backgrounds/BackgroundWithBeasyIconAndWhiteContentArea.tsx index b0d1fea..775ed91 100644 --- a/src/components/backgrounds/BackgroundWithBeasyIconAndWhiteContentArea.tsx +++ b/src/components/backgrounds/BackgroundWithBeasyIconAndWhiteContentArea.tsx @@ -1,10 +1,16 @@ import BeasyLogoIcon from "@components/BeasyLogoIcon"; +import GoBackIconButton from "@components/GoBackIconButton"; import WrapperTopEdgeCurved from "@components/WrapperTopEdgeCurved"; import Box from "@components/bases/Box"; +import { useNavigation } from "@react-navigation/native"; import type { ReactElement } from "react"; import BackgroundDefault from "./BackgroundDefault"; -const BackgroundWithBeasyIconAndWhiteContentArea = ({ children }: { children?: ReactElement }) => { +const BackgroundWithBeasyIconAndWhiteContentArea = ({ + children, + goBack = false, +}: { children?: ReactElement; goBack?: boolean }) => { + const navigation = useNavigation(); return ( + {goBack && navigation.goBack()} />} {children}