import { useMemo } from 'react'; import { Stack } from 'expo-router'; import { useRouter } from 'expo-router'; import { AppBackButton } from '../../../../src/components/common'; import { useAppColors } from '../../../../src/theme'; export default function ProfileStackLayout() { const router = useRouter(); const colors = useAppColors(); const headerOptions = useMemo( () => ({ headerStyle: { backgroundColor: colors.background.paper }, headerTintColor: colors.text.primary, headerTitleStyle: { fontWeight: '600' as const }, headerShadowVisible: false, headerBackTitle: '', }), [colors] ); return ( router.back()} />, }} > ); }