import { Stack, useRouter } from 'expo-router'; import { Pressable } from 'react-native'; import { IconSymbol } from '@/components/ui/icon-symbol'; import { Colors } from '@/constants/theme'; import { useColorScheme } from '@/hooks/use-color-scheme'; import { useTranslation } from '@/localization/i18n'; export default function HarvestsLayout() { const { t } = useTranslation(); const router = useRouter(); const colorScheme = useColorScheme(); const palette = Colors[colorScheme ?? 'light']; return ( canGoBack ? ( router.back()} hitSlop={10} style={{ paddingHorizontal: 8 }}> ) : null, }}> ( router.back()} hitSlop={10} style={{ paddingHorizontal: 8 }}> ), }} /> ); }