import { Ionicons } from "@expo/vector-icons"; import { Pressable, ScrollView, Text, View } from "react-native"; import { useSafeAreaInsets } from "react-native-safe-area-context"; import { useRouter } from "expo-router"; import { useTranslation } from "react-i18next"; export default function MehrScreen() { const insets = useSafeAreaInsets(); const router = useRouter(); const { t } = useTranslation(); type MenuItem = { icon: React.ComponentProps["name"]; label: string; subtitle: string; color: string; route: string; }; const MENU_ITEMS: MenuItem[] = [ { icon: "airplane-outline", label: t('mehr.vacation'), subtitle: t('mehr.vacationSubtitle'), color: "#0ea5e9", route: "/(app)/urlaub", }, { icon: "settings-outline", label: t('settings.title'), subtitle: t('mehr.settingsSubtitle'), color: "#6b7280", route: "/(app)/settings", }, ]; return ( {t('tabs.more')} {MENU_ITEMS.map((item, index) => ( router.push(item.route as Parameters[0])} className="flex-row items-center px-4 py-4 active:bg-gray-50" style={index < MENU_ITEMS.length - 1 ? { borderBottomWidth: 1, borderBottomColor: "#f3f4f6" } : undefined} > {item.label} {item.subtitle} ))} ); }